SELECT * FROM clientWHERE identifyingnumber LIKE '%86%'ORDER BY LEN(identifyingnumber)SELECT *FROM(SELECT *, 1 AS PRIO FROM clientWHERE identifyingnum...
分类:
其他好文 时间:
2015-03-11 16:50:46
阅读次数:
123
在WebAPI工程入口不对外公开的接口不能使用public。 [HttpPost] public string PostRequest([FromBody] Model model) { /// } //Va...
-q 参数,本意是 Quiet; do not write anything to standard output. Exit immediately with zero status if any match is found, even if an error was detected. 中文....
分类:
其他好文 时间:
2015-03-11 10:42:40
阅读次数:
2067
function checkPhoto(){ var type=""; if(document.getElementById("newphoto").value!=''){ type=document.getElementById("newphoto").value.match(/^(.*)(\.)...
分类:
Web程序 时间:
2015-03-10 19:11:15
阅读次数:
182
root@debian:~/Workspace# awk ' { if(match($7,"/*\.php*")) { if(index($7,"?")) { print substr($7,0,index($7,"?")) } else { print $7; } } } ' access.log...
分类:
Web程序 时间:
2015-03-10 16:59:17
阅读次数:
130
推荐先读 正则表达式必知必会 这本书放在不定量词后面(放在 * + 这样的量词后面)的? 是表示非贪婪匹配 贪婪匹配str = "AB1111BA111BA";reg = /AB[\s\S]+BA/;console.log(str.match(reg)); 非贪婪匹配str = "AB1111BA....
分类:
其他好文 时间:
2015-03-10 16:53:05
阅读次数:
120
文章转自http://www.jb51.net/article/28007.htm目的是该内容中可以匹配所有match的结果,给几个常用查询关键字,方便查的人看到该文章吧,js 正则匹配全部 js reg next,重点代码见下面紫红色字部分,相信你一看就会了,我也是找了半天,收集一下match 方...
分类:
Web程序 时间:
2015-03-10 11:51:15
阅读次数:
196
var text = "testing: 1, 2, 3";var pattern = /\d+/g;pattern.test(text) //=>true :匹配成功text.search(pattern);//=> 9:首次匹配成功的位置(从0开始计数)text.match(pattern);/...
分类:
Web程序 时间:
2015-03-10 11:45:53
阅读次数:
153
先上几张效果图, 如下: 上述四张图要实现的布局效果是: 假如父控件中包含两个子控件, 其中一个子控件(上图中为红色button)的宽度是固定数值, 而另一个子控件(上图中为绿色button)的宽度不固定, 要想让这两个子控件的总宽度刚好等于父控件的宽度.可以将宽度不固定的那个控件的宽度设置为mat...
分类:
移动开发 时间:
2015-03-09 14:16:46
阅读次数:
1013
找到编辑器目录下include文件夹中的Editor.js文件,将其中的:if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); 改为如下: if((navigator.appVersion.match(/MSIE ...
分类:
Web程序 时间:
2015-03-08 16:56:32
阅读次数:
124