このトピックでjQueryの利用サンプルを説明します。
【Google API Test】ボタンを押して、Google jQueryライブラリを経由して【Hello】メッセージを出します。
ソースコード:
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.4.2");
google.load("jqueryui", "1.7.2");
</script>
<script type="text/javascript">
$(function(){
$("#btnTest").click(function(){
alert("hello google jquery.");
});
});
</script>
0 件のコメント:
コメントを投稿