上一页 1 2 3 4 5 6 7 ··· 24 下一页
摘要: 需求如下:第一个input添加字符到第二个input,第二个input需要累加。html: 1 2 *企业填报数据包含海关代码有: 3 4 5 6 7 8 9 10 11 12 js: 1 //企业填报数据包含海关代码有 赋值 2 $("#hgdm_plus").on("click", function () { 3 v... 阅读全文
posted @ 2013-11-28 16:22 小猩猩君 阅读(1498) 评论(0) 推荐(0)
摘要: http://learn.jquery.com/using-jquery-core/iterating/The following is a list of methods that require.each():.attr()(getter).css()(getter).data()(getter).height()(getter).html()(getter).innerHeight().innerWidth().offset()(getter).outerHeight().outerWidth().position().prop()(getter).scrollLeft()(getter 阅读全文
posted @ 2013-11-05 11:21 小猩猩君 阅读(225) 评论(0) 推荐(0)
摘要: HTML5 的应用缓存最关键的就是支持离线应用,可获取少数或者全部网站内容,包括 HTML、CSS、图像和 JavaScript 脚本并存在本地。该特性加速了网站的性能,可通过如下方式实现:.....与传统的浏览器缓存比较,该特性并不强制要求用户访问网站。 阅读全文
posted @ 2013-10-11 08:59 小猩猩君 阅读(4458) 评论(0) 推荐(0)
摘要: frameframesetnoframeappletbigcenterbasefront 阅读全文
posted @ 2013-10-11 08:58 小猩猩君 阅读(959) 评论(0) 推荐(0)
摘要: HTML 5 支持本地存储,在之前版本中是通过 Cookie 实现的。HTML5 本地存储速度快而且安全。有两种不同的对象可用来存储数据:localStorage适用于长期存储数据,浏览器关闭后数据不丢失sessionStorage存储的数据在浏览器关闭后自动删除 阅读全文
posted @ 2013-10-11 08:49 小猩猩君 阅读(5588) 评论(0) 推荐(0)
摘要: 1 switch (window.location.hostname) { 2 case "www.zcom.gov.cn" ://确定域名为 www.zcom.gov.cn 3 //window.location.pathname="/"//跳转到 / 目录 4 break; 5 case "cisf.zcom.gov.cn" ://确定域名为 cisf.zcom.gov.cn 6 window.location.pathname = "/swz2013/"//跳转到 /swz2013/ 目录 7 break;. 阅读全文
posted @ 2013-07-17 08:49 小猩猩君 阅读(1926) 评论(0) 推荐(0)
摘要: 1 $("form").submit(function () {2 console.log("提交了");3 $("input:submit").attr("disabled", "true");4 setTimeout(function () {5 $("input:submit").removeAttr("disabled");6 }, 3000);7 });网上看到老外写的 1 // jQuery plugin to prevent double.. 阅读全文
posted @ 2013-07-08 16:26 小猩猩君 阅读(336) 评论(0) 推荐(0)
摘要: 1 function Klass() { 2 this.id = new Date().getTime(); 3 this.name = ''; 4 } 5 6 Klass.prototype.get = function() { 7 return this.id; 8 }; 9 10 Klass.prototype.set = function(name) {11 this.name = name;12 };13 14 var test1 = new Klass();15 var test2 = new Klass();16 test1.set('tttt... 阅读全文
posted @ 2013-07-08 08:58 小猩猩君 阅读(130) 评论(0) 推荐(0)
摘要: 1 // 最佳做法:如果可用,使用本地XHR 2 if (window.XMLHttpRequest) { 3 // 如果是IE7+, Gecko, WebKit:使用本地对象 4 var xmlHttp = new XMLHttpRequest(); 5 } else if (window.ActiveXObject) { 6 // ...如果不是,尝试ActiveX控件 7 var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); 8 } else { 9 // 没有XMLHTTPRequest机制... 阅读全文
posted @ 2013-07-07 22:33 小猩猩君 阅读(274) 评论(0) 推荐(0)
摘要: 1 var arr1 = function() { 2 console.log("arr1"); 3 }; 4 var arr2 = function() { 5 console.log("arr2"); 6 }; 7 var arr3 = function() { 8 console.log("arr3"); 9 };10 11 window.onload = function() {12 setTimeout(function() {13 var arr = [arr1(), arr2(), arr3()];14 }, 1000) 阅读全文
posted @ 2013-06-13 16:39 小猩猩君 阅读(237) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 24 下一页