文章分类 -  js

javascript
摘要:原文出处(据说是个大牛的blog):http://www.quirksmode.org/js/events_order.html我是在搜索js冒泡时发现的这篇文章,觉得很好,所以转了。格式可能有点乱,建议点击上面链接看原文,可能会发现更多惊喜哟!=============================================================================== 华丽的分割线,下面是全文Event orderOn the Introduction to events page I asked a question that at first sight 阅读全文
posted @ 2012-10-30 16:25 bourneli 阅读(261) 评论(0) 推荐(0)
摘要:原文出处:http://hi.baidu.com/bookun/item/a92138c3ebe1eb0fad092f2b网上查到的全都是escape,和需要的编码不是一回事,好不容易找到的结果 保存下来以备以后使用js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。例如:<script language="javascript&qu 阅读全文
posted @ 2012-09-11 20:35 bourneli 阅读(245) 评论(0) 推荐(0)