随笔分类 -  JQuery js javascript

摘要:原文地址:http://wenku.baidu.com/view/9048edee9e31433239689357.html本文一共介绍了七种javascript加密方法: 在做网页时(其实是网页木马呵呵),最让人烦恼的是自己辛辛苦苦写出来的客户端IE运行的javascript代码常常被别人轻易的... 阅读全文
posted @ 2014-11-08 00:26 dapeng888 阅读(640) 评论(0) 推荐(0)
摘要:原文地址:http://www.vinqon.com/codeblog/?detail/11106前几天突然想写一个css的js压缩工具,于是这两天研究了一下几个js、css的压缩工具并且理清楚了一些概念和原理,下面总结一下。几个基本概念在网站部署前,我们往往要对前端的代码进行发布,我这里说的“发布... 阅读全文
posted @ 2014-11-08 00:23 dapeng888 阅读(11650) 评论(0) 推荐(0)
摘要:https://www.google.com/search?biw=1440&bih=729&q=javascript%E4%BB%A3%E7%A0%81%E6%B7%B7%E6%B7%86%E5%8E%9F%E7%90%86&oq=javascript%E4%BB%A3%E7%A0%81%E6%B... 阅读全文
posted @ 2014-11-08 00:21 dapeng888 阅读(806) 评论(0) 推荐(0)
摘要:原文地址:http://zhidao.baidu.com/link?url=f81iaijX6nzY99Wz43v-p_qZEn4cCaomT4LD6NH5jVtI0yK2V76VJWefih51vAiQbPzkhCz_3ry8Y-FAQA0-jK先从闭包特点解释,应该更好理解.闭包的两个特点:1、... 阅读全文
posted @ 2014-11-07 10:49 dapeng888 阅读(206) 评论(0) 推荐(0)
摘要:$.get("@Hosts.Default.Www/api/XXXXX/Getxxx/"+@Model.UserId, function(data) { $("#totalPv").text("历史访问量:"+data[0]+"次"); $("#today... 阅读全文
posted @ 2014-10-11 22:40 dapeng888 阅读(188) 评论(0) 推荐(0)
摘要:function generateUUID(){ var d = new Date().getTime(); var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { v... 阅读全文
posted @ 2014-10-10 16:57 dapeng888 阅读(233) 评论(0) 推荐(0)
摘要:eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c... 阅读全文
posted @ 2014-09-16 15:32 dapeng888 阅读(2383) 评论(0) 推荐(0)
摘要:原文地址:http://jun1986.iteye.com/blog/1176909------------------------------------------------------------------------------------------------------------... 阅读全文
posted @ 2014-09-12 11:31 dapeng888 阅读(24651) 评论(0) 推荐(0)
摘要:原文地址: http://www.cnblogs.com/xdp-gacl/p/3703876.html闭包(closure)是Javascript语言的一个难点,也是它的特色, 很多高级应用都要依靠闭包实现。很早就接触过闭包这个概念了,但是一直糊里糊涂的,没有能够弄明白JavaScript的闭包到... 阅读全文
posted @ 2014-08-14 10:26 dapeng888 阅读(237) 评论(0) 推荐(0)
摘要:WebStorm 百度百科http://baike.baidu.com/view/5443872.htm?fr=aladdin 阅读全文
posted @ 2014-07-30 10:45 dapeng888 阅读(131) 评论(0) 推荐(0)
摘要:解决问题在btn_publish函数内逻辑最后面加:return false; 阅读全文
posted @ 2014-06-26 12:07 dapeng888 阅读(202) 评论(0) 推荐(0)
摘要:在项目中引入json2.js官方http://www.json.org/源码地址:https://github.com/douglascrockford/JSON-js $.ajax({ url: '/LicXXse/Add', conten... 阅读全文
posted @ 2014-06-25 10:59 dapeng888 阅读(2158) 评论(0) 推荐(0)
摘要:方法1:javascritp方法123456//随机数functiondiu_Randomize(b,e){if(!b&&b!=0||!e){return"?";}returnMath.floor((Math.random()*e)+b);}$(window).load=$(".ps"+diu_Ra... 阅读全文
posted @ 2014-06-23 17:09 dapeng888 阅读(41206) 评论(0) 推荐(0)
摘要:原文地址:http://hi.baidu.com/kinghmx/item/395dbac3261292dcef183b52最近在写一个页面,在出了ie6外的所有浏览器中都正常(ie7,8,9, firefox, chrome), IE6下提示 “无法设置selected属性。未指明的错误”。后来发... 阅读全文
posted @ 2014-06-19 11:11 dapeng888 阅读(406) 评论(0) 推荐(0)
摘要://根据条件,查到对应的省或市或区下拉框选项 function LoadListProvinceData(parentId, objTarget) { if (ListProvinceData == null) { L... 阅读全文
posted @ 2014-06-17 18:43 dapeng888 阅读(1193) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/liguiqiang1986/articles/3132023.htmlJS--回到顶部代码 咿呀网-回到顶部代码 ... 阅读全文
posted @ 2014-06-14 17:26 dapeng888 阅读(376) 评论(0) 推荐(0)
摘要:jquery图片滚动仿QQ商城带左右按钮控制焦点图片切换滚动http://www.17sucai.com/pins/demoshow/382 阅读全文
posted @ 2014-06-01 16:52 dapeng888 阅读(162) 评论(0) 推荐(0)
摘要:使用捆绑与 ASP.NET MVC 放缩法在这一节我们将创建 ASP.NET MVC 项目,审查捆绑和缩小。首先,创建一个新的 ASP.NET MVC 互联网项目,命名为MvcBM,而无需更改任何默认设置。打开App_Start\BundleConfig.cs文件并检查的RegisterBundle... 阅读全文
posted @ 2014-06-01 16:45 dapeng888 阅读(1664) 评论(0) 推荐(0)
摘要:http://plugins.jquery.com/lazyload/Jquery.LazyLoad.js插件参数详解: 1,用图片提前占位 placeholder : "img/grey.gif", 参数:placeholder,值为某一图片路径.此图片用来占据将要加载的图片的位置,待图片加载时,... 阅读全文
posted @ 2014-05-25 16:19 dapeng888 阅读(328) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/fullhouse/archive/2012/01/17/2324842.html1:GET访问 浏览器 认为 是等幂的就是 一个相同的URL 只有一个结果[相同是指 整个URL字符串完全匹配]所以 第二次访问的时候 如果 URL字符串没变化 ... 阅读全文
posted @ 2014-05-08 15:17 dapeng888 阅读(365) 评论(0) 推荐(0)