
-------4.3 JS/JQuery
启舰
今天就是未来,没有人能代替你奋斗!自己造的船,终有一天它会扬帆远航!
展开
-
JQuery -- this 和 $(this) 的区别
$(document).ready(function(){ $("div").each(function(){ alert($(this).html() + "----" + this.tagName + "--" + $(this)[0].id); alert((this == $(this)[0])); $(this).a转载 2012-12-11 15:10:42 · 4719 阅读 · 0 评论 -
过JS向PHP页面传递中文参数的两种方法
在网上找的,先留下来,以备后用,看评论说,这个是针对UTF-8编码的暂时找到了两种最常用的方法////////////////////////////////////// 第一种 直接URL编码 比较方便JS:string = encodeURIComponent(string);location.href = index.php?keyword=’+strin转载 2012-12-28 21:37:00 · 7401 阅读 · 0 评论