04 2018 档案
如何去掉C#字符串中的所有空格
摘要:字符串行数Trim()可以去掉字符串前后的空格,如: C# Code string myString = " this is a test "; Console.WriteLine(myString.Trim()); View Code C# Code string myString = " thi 阅读全文
posted @ 2018-04-28 10:02 donchen-c 阅读(87304) 评论(0) 推荐(3)
JS去掉字符串前后空格或去掉所有空格的用法
摘要:1、 去掉字符串前后所有空格: 代码如下: function Trim(str) { return str.replace(/(^\s*)|(\s*$)/g, ""); } View Code function Trim(str) { return str.replace(/(^\s*)|(\s*$ 阅读全文
posted @ 2018-04-28 09:53 donchen-c 阅读(1681) 评论(0) 推荐(0)
SQL SERVER 查看SQL语句IO,时间,索引消耗
摘要:1.查看SQL语句IO消耗 set statistics io on select * from dbo.jx_order where order_time>'2011-04-12 12:49:57.580' set statistics io off 2.查看SQL语句时间消耗 set stati 阅读全文
posted @ 2018-04-22 11:28 donchen-c 阅读(2091) 评论(0) 推荐(0)
jQuery如何根据元素值删除数组元素
摘要:用到的方法$.inArry(); $.inArray( value, array [, fromIndex ] ) value 任意类型 用于查找的值。 array Array类型 指定被查找的数组。 fromIndex 可选。Number类型 指定从数组的指定索引位置开始查找,默认为 0 函数用于 阅读全文
posted @ 2018-04-03 09:55 donchen-c 阅读(2895) 评论(0) 推荐(0)