![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
文章平均质量分 62
FzBcumt
这个作者很懒,什么都没留下…
展开
-
js事件处理器执行时绑定变量导致的问题
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> &原创 2012-06-17 20:45:28 · 139 阅读 · 0 评论 -
解决jQuery $.getJSON() 传递参数中文乱码问题
前台 js var submitDir=$("#submitDir"); submitDir.click(function(){ var dirName=$("#dirName").attr("value"); dirName=encodeURI(encodeURI(dirName));//两次使用encodeURI() if(dirName!=""){ ...原创 2012-09-04 22:11:49 · 247 阅读 · 0 评论