1 public static string NoHTML(string Htmlstring) 2 { 3 4 5 //删除脚本 6 Htmlstring = Regex.Replace(Htmlstring, @"", "", RegexOptions.IgnoreCase); 7 //...
分类:
Web程序 时间:
2015-04-10 19:30:58
阅读次数:
119
js方式的页面跳转1.window.location.href方式 2.window.navigate方式跳转 3.window.loction.replace方式实现页面跳转,注意跟第一种方式的区别有3个jsp页面(1.jsp, 2.jsp, 3.jsp),进系统默认的是1.jsp ,当我进入2....
分类:
Web程序 时间:
2015-04-10 19:21:32
阅读次数:
134
在项目中切换Fragment,一直都是用replace()方法来替换Fragment。但是这样做有一个问题,每次切换的时候Fragment都会重新实列化,重新加载一次数据,这样做会非常消耗性能用用户的流量。官方文档解释说:replace()这个方法只是在上一个Fragment不再需要时采用的简便方法...
分类:
移动开发 时间:
2015-04-10 17:40:22
阅读次数:
148
在使用getSupportFragmentManager().findFragmentByTag(tag)无法找到,返回为空,原因由于咋replace()时必须要将fragment放入到返回栈中。 保证调用以下方法:
ft.addToBackStack(tag);
/**
* Example of starting nested fragment from...
分类:
其他好文 时间:
2015-04-10 15:34:29
阅读次数:
146
一、 字符串 转 Date:
1 . 字符串格式为: yyyy-mm-dd hh24:mi:ss – 使用ie内核浏览器的必须转换成yyyy/mm/dd hh24:mi:ssvar dateStr = "2015-04-08 14:7:12"; //或2015-4-8 14:7:12
var date = new Date(Date.parse(dateStr.replace(/-/g,'/'...
分类:
编程语言 时间:
2015-04-09 21:57:36
阅读次数:
202
1 function replaceStr(str){ // 正则法 2 str = str.toLowerCase(); 3 var reg = /\b(\w)|\s(\w)/g; // \b判断边界\s判断空格 4 return str.replace(reg,function...
分类:
Web程序 时间:
2015-04-09 21:36:21
阅读次数:
151
if?(item.from_datetime.replace(tzinfo=None)?>=?datetime.datetime.now()): Django默认支持多时区; dt = datetime.datetime(2015, 4, 9, 11, 2, 52, ?tzinfo=<LocalTimezone>) : offset-aware? now?=?d...
分类:
其他好文 时间:
2015-04-09 12:19:02
阅读次数:
130
一个全为数字的字符串,现在要从后往前每三位分割 ?‘123456789‘.replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,‘$1,‘);?
??123,456,789 使用了贪婪模式,正负前瞻,捕获和非捕获,如果有其它解决方案,欢迎介绍...
分类:
Web程序 时间:
2015-04-09 12:16:34
阅读次数:
197
Here are the fully expand steps:0) at the beginning , we get expression ``(car (cons 1 2))``1) replace ``cons`` using ``(lambda (m) (m x y))`` , we ge...
分类:
其他好文 时间:
2015-04-09 00:49:11
阅读次数:
113
INSERT OR REPLACE INTO Employee (id, name, role) VALUES (1, 'John Foo', 'CEO');
分类:
数据库 时间:
2015-04-08 23:10:08
阅读次数:
234