摘要:
绑定事件的方法:1.直接绑定: $("span").click(function(){ alert(0) });2.bind绑定事件:1》绑定一个函数: $(selector).bind(event,data,function)$("button").bind("click",functio... 阅读全文
posted @ 2015-04-26 15:57
Shimily
阅读(1289)
评论(0)
推荐(0)
摘要:
DataDeal.js:$.ajaxSetup({ contentType: "application/x-www-form-urlencoded; charset=utf-8"});var DataDeal = { //将从form中通过$('#form').serialize()获取... 阅读全文
posted @ 2015-04-26 15:13
Shimily
阅读(3927)
评论(0)
推荐(0)
摘要:
var json= { "Type": "Coding", "Height":100 }; console.log(json) $.each(json, function(i) { console.log("属性:"+i+" 属性值:"+json[i]); }); 阅读全文
posted @ 2015-04-26 14:50
Shimily
阅读(160)
评论(0)
推荐(0)
摘要:
防止中文乱码:decodeURIComponent 阅读全文
posted @ 2015-04-26 14:38
Shimily
阅读(2510)
评论(1)
推荐(0)
摘要:
输出标准的查询字符串: a=1&b=2&c=3&d=4&e=5 注释:只会将”成功的控件“序列化为字符串。如果不使用按钮来提交表单,则不对提交按钮的值序列化。如果要表单元素的值包含到序列字符串中,元素必须使用 name 属性。Demo1: 表单序列化 ... 阅读全文
posted @ 2015-04-26 14:03
Shimily
阅读(216)
评论(0)
推荐(0)
摘要:
http://www.jq22.com/http://www.jq22.com/jquery/%E5%8A%A0%E8%BD%BDhttp://www.jq22.com/jquery/%E5%BC%B9%E5%87%BA%E5%B1%82 阅读全文
posted @ 2015-04-26 11:21
Shimily
阅读(2731)
评论(0)
推荐(0)
摘要:
SuperScrollorama 由 TweenMax 和 Greensock 补间引擎提供动力。第一,链接到jQuery CDN ,然后嵌入 TweenMax.js 和 SuperScrollorama。下一步,启动 SuperScrollorama。把它作为一种控制器的动画。你添加补间和时间表,... 阅读全文
posted @ 2015-04-26 10:57
Shimily
阅读(530)
评论(0)
推荐(0)
摘要:
Javascript:网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.offs... 阅读全文
posted @ 2015-04-26 10:41
Shimily
阅读(107)
评论(0)
推荐(0)