![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
深邃老夏
这个作者很懒,什么都没留下…
展开
-
三种js转码函数(escape,encodeURI,encodeURIComponent)用法和区别
js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent1、 传递参数时需要使用encodeURIComponent,这样组合的url才不会被#等特殊字符截断。 例如:document.writ转载 2013-08-02 09:52:35 · 1011 阅读 · 0 评论 -
jquery得到子孙节点变通方法
用jquery,我们可以用 ele.children("input,select") 获得一个标签下的子标签,并且可以擅选对应名字的标签,但是它只能选取子标签,子标签的子标签乃至更下级的不能通过这个方法获得.比如如下html代码:div>原创 2013-08-02 20:41:11 · 618 阅读 · 0 评论