摘要: 关于jQuery()方法的第二个参数,有下面这几种用法: 1.jQuery(selector, [context]) 这种用法,相当于 $(context).find(selector) 或者 context.find(selector) 2.jQuery(html, [ownerDocument] 阅读全文
posted @ 2017-08-21 14:45 菜鸟江太公 阅读(2230) 评论(1) 推荐(0) 编辑
摘要: 我将这坨伪类分成三组,第一组:nth-child,nth-last-child,only-child第二组:nth-of-type,nth-last-of-type,第三组:first-of-tpye,last-of-type,第四组:first-child,last-child。 ==1== nt 阅读全文
posted @ 2017-06-29 13:51 菜鸟江太公 阅读(725) 评论(1) 推荐(0) 编辑
摘要: By Paul Lewis(设计和性能倡导者) 翻译:江天 使用history api管理url是非常棒的一件事,可以说这是一个好web app的极为重要的特点。但它有一个缺点,滚动位置虽然被存储但更重要的是,当history来回循环的时候的存储。这种情况往往意味着当滚动位置自动改变的时候很难看的跳 阅读全文
posted @ 2017-06-20 18:05 菜鸟江太公 阅读(4257) 评论(0) 推荐(0) 编辑
摘要: https://www.oschina.net/code/snippet_862384_25415 阅读全文
posted @ 2017-05-28 17:15 菜鸟江太公 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 我们在习惯使用flashfxp等工具,但是随着主机商限制较多,这些老的FTP工具不怎么好用了,比如主机商会推荐使用到Filezilla等工具。但是比如息壤主机,我们在管理linux环境下htacesss文件时,发现上传后文件居然失踪了,用其他FTP工具却可以看到,这是为什么?原因在: 服务器上做环境 阅读全文
posted @ 2017-05-28 16:59 菜鸟江太公 阅读(2504) 评论(0) 推荐(1) 编辑
摘要: 费了好几个小时,把一小段正则代码搞通了,回顾并记下,加深记忆。 该段代码来自yii.js,它也是引自stackoverflow,地址是:http://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-reg 阅读全文
posted @ 2017-05-26 17:27 菜鸟江太公 阅读(296) 评论(0) 推荐(0) 编辑
摘要: mac不知道为何,文章字数一多,浏览器就重启。只好分开写了。 In the event a Deferred was resolved with no value, the corresponding doneCallback argument will be undefined. If a Def 阅读全文
posted @ 2017-05-25 22:08 菜鸟江太公 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 地址:http://api.jquery.com/jQuery.when/ jQuery.when( deferreds ),returns Promise 正文 Description: Provides a way to execute callback functions based on z 阅读全文
posted @ 2017-05-25 21:46 菜鸟江太公 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 仅供研究,勿用于非法用途。 源代码: 对以上eval js代码解密后(使用工具:http://tool.lu/js/): 代码没什么特殊的,就是检测当前window名字若不为ad_app6,则获取访问当前页面之前的页面,目的是监测搜索引擎的搜索流量。 然后逐一去访问来源的域名中找aSites数组中存 阅读全文
posted @ 2017-05-12 09:53 菜鸟江太公 阅读(444) 评论(0) 推荐(0) 编辑
摘要: contentStack = { globalContext} globalContext = { globalariableObject : [factory,app], globalScopeChain : globalariableObject } app.[[Scope]] = global 阅读全文
posted @ 2017-03-06 09:37 菜鸟江太公 阅读(127) 评论(0) 推荐(0) 编辑