01 2018 档案
摘要:转自 http://blog.csdn.net/ljp1919/article/details/53337670 背景 需要从一个文件中逐行的数据中提取出符合要求的子串,比如提取其中tagA*****tagB之间的字符 方案1:基于sed方式的子串提取 cat my.log | sed 's/\(.
阅读全文
摘要:例如父窗口定义了一个事件。 top: (dom1, parent.document).trigger('topEvent'); 看似正确,实则误导人。
阅读全文
摘要:在ajax请求中,如果服务器端的响应是302 Found,在ajax的回调函数中能够获取这个状态码吗?能够从Response Headers中得到Location的值进行重定向吗?让我们来一起看看实际情况。使用jquery的$.ajax()发起ajax请求的javascript代码如下: 复制代码代
阅读全文
摘要:How often have you applied the JavaScript or CSS solution considered as an optimization, and after couldn’t find an easy way to measure how effective
阅读全文
摘要:from https://www.cnblogs.com/zikai/p/5074686.html JQuery的extend扩展方法: Jquery的扩展方法extend是我们在写插件的过程中常用的方法,该方法有一些重载原型,在此,我们一起去了解了解。 一、Jquery的扩展方法原型是: exte
阅读全文
摘要:public void Request<T>(List<T> EntityList) where T : class { } 这是参数类型约束,指定T必须是Class类型。 .NET支持的类型参数约束有以下五种:where T : struct | T必须是一个结构类型where T : class
阅读全文