JQuery Mobile学习(一)

鉴于phonegap开发手机应用,Jquery Mobile也必不可少,上官网下载下来JS,短小精悍,很优美的代码。

找了个例子,浏览器运行了下,这几行就能实现字体消失的功能了,放到phonegap的html中运行,android手机上也能work啦,继续学习~~

<html>

<head>
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>

<body>
<p>If you click on me, I will disappear.</p>
</body>

</html>

 

 

posted on 2012-03-01 18:09  lightideal  阅读(224)  评论(0编辑  收藏  举报

导航