2010年8月10日

Jquery 第一季

摘要: demo0:程序代码 $(document).ready(function(){// 你的代码}); $(document)意思是说,获取整个网页文档对象(类似的于window.document),$(document).ready意思就是说,获取文档对象就绪的时候。 上面这段代码的意思是检查文档对象直到它能够允许被操作(译者注:这样做比window.onload()函数要快的多,因为只要文档对象... 阅读全文

posted @ 2010-08-10 09:48 饶兴 阅读(512) 评论(0) 推荐(0)

js escape

摘要: js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。例如:<script language="javascript">document.w... 阅读全文

posted @ 2010-08-10 09:43 饶兴 阅读(4476) 评论(0) 推荐(2)

导航