Hello, jQuery World!
Posted on 2月 6th, 2012 by cx20
jQuery
jQuery は高い人気を誇る JavaScript ライブラリの1つである。マイクロソフトの ASP.NET のクライアントスクリプトライブラリにも採用されている。
ソースコード
<html> <head> <title>Hello, World!</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> <!-- $(function() { $('#hello').html('<p>Hello, jQuery World!</p>'); }); //--> </script> </head> <body> <div id="hello"></div> </body> </html> |
実行方法
1. Web サーバーの公開フォルダへ配置 2. ブラウザで表示 http://localhost/doc/hello.html |
実行結果
Hello, jQuery World! |
Tags: jQuery
Categories: JavaScript, jQuery, library