2014-10-28から1日間の記事一覧
ユーザーエージェントを判定する簡単なユーティリティを作ってみた。 function DecideUA(){ this.name = window.navigator.userAgent.toLowerCase(); } DecideUA.prototype = { match: function(str){ return (this.name.indexOf(str) !== -1); } } 使い方 m…
ユーザーエージェントを判定する簡単なユーティリティを作ってみた。 function DecideUA(){ this.name = window.navigator.userAgent.toLowerCase(); } DecideUA.prototype = { match: function(str){ return (this.name.indexOf(str) !== -1); } } 使い方 m…