编译之前的处理指令A.宏定义a.1 //Like static constant2 #define NUM 63 4 //The truth of macro define is replacing the constant5 //Replace "sum(a, b)" with "a+b"6 #d...
分类:
编程语言 时间:
2015-05-13 18:55:24
阅读次数:
111
CREATE OR REPLACE FUNCTION IDFMS.func_dec236 (parm IN INT DEFAULT 0) RETURN VARCHAR2IS /* 10进制数转36进制数 */ src VARCHAR2 (36) := '0123456789ABCDEFGHIJKLM...
分类:
数据库 时间:
2015-05-13 10:07:46
阅读次数:
236
1:json的介绍:json常用于前台与后台的数据传输 传递时需将json对象转换为json字符JSON.stringify();2:json格式的查看应用:JsonView3:后台获取到json字符格式的处理方式: a:去除多余的字符例子:.Replace("\",\"", ",").Replac...
分类:
Web程序 时间:
2015-05-13 00:23:01
阅读次数:
185
function trim(str){ return str.replace(/(^\s*)|(\s*$)/g, "");//删除左右两端的空格}function ltrim(str){ return str.replace(/(^\s*)/g,"");//删除左边的空格}function rtri...
分类:
编程语言 时间:
2015-05-12 22:24:03
阅读次数:
161
在做网站的时候,用到了去除html标签的问题,用正则匹配到html标签,然后replace即可。/// /// C#去除HTML标签/// /// 带有html标签的文本/// 截取长度/// public static string ReplaceHtmlTag(string html, int....
2,8阅读 第一章 ?第一个案例 在此案例中使用了, 方法的提取(extract method),方法的移动(move method),临时变量的清除,变量及函数名重构,switch类型重构(replace type code with state/strategy)等。 ...
分类:
编程语言 时间:
2015-05-12 11:49:01
阅读次数:
1707
--方法0:动态SQL法declare @s varchar(100),@sql varchar(1000)set @s='1,2,3,4,5,6,7,8,9,10'set @sql='select col='''+ replace(@s,',',''' union all select ''')+...
分类:
数据库 时间:
2015-05-11 19:49:19
阅读次数:
214
在项目中通过js来隐藏身份证的某些字符,电脑版的实现是在页面截取,现在做手机版,想把截取字符串放在后台来操作,但为了保证手机版和电脑版显示一致,所以希望截取规则也能一致,ftl页面的js写法如下:
var html = '123456789abcdefghi';
var uw = html.replace(/(\w...
分类:
Web程序 时间:
2015-05-11 18:06:38
阅读次数:
352
题目描述:
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of ...
分类:
移动开发 时间:
2015-05-11 18:03:15
阅读次数:
136