Restoration
11/11/2016 - 11:49 AM

ユーザーエージェントがiPhoneか判別

ユーザーエージェントがiPhoneか判別

var userAg = navigator.userAgent.toLowerCase();
var checkiPhone = userAg.indexOf("iPhone") > -1;
if(checkiPhone){
	//処理
}