Step1:まず下準備 こちらはいつもと同じです。まず必要なファイルを読み込みます。 headタグの中に、jQueryと、自分で作ったjsファイル(今回は device.js とします)を読み込みます。 <head> <script src="common/js/jquery.js" type="text/javascript"></script> <script src="common/js/device.js" type="text/javascript"></script> </head>
