// // <copyright file="SHA1.cs" company="720U Enterprises">// * copyright: (C) 2017 720U科技有限公司 版权所有。// * version : 1.0.0.0// * author : rongbo// * fil ...
分类:
其他好文 时间:
2019-10-22 18:36:10
阅读次数:
102
res = JSON.parse(result.replace(/\n/g,"\\n").replace(/\r/g,"\\r"));//转义str_o = res.result;str_n = str_o.replace(/\\n/g,"\r\n");//解析后再转回来 摘自:https://bl ...
分类:
Web程序 时间:
2019-10-22 15:38:22
阅读次数:
125
success:function(res){ res=res.replace(/\s/g,''); alert(res);} ...
分类:
Web程序 时间:
2019-10-22 15:11:07
阅读次数:
124
在 Emacs 中集成 Recoll 全文搜索在 Emacs 中集成 Recoll 全文搜索目录1. 需求2. 解决办法1 需求时间一长,平常收集的资料就多了,于是使用了 recoll 全文搜索,但是在Emacs 中工作时间多,搜索要在 Emacs 和 Recoll 图形界面中来回切换,很不方便。而... ...
分类:
系统相关 时间:
2019-10-22 11:02:45
阅读次数:
98
定义a b c供以下使用 a = 'hello world' b = ' ' c = '123' count 统计字符个数 res = a.count('o') print(res) #2 index 从左往右查找第一个定义的字符的索引,找不到报错 res = a.index('o') print( ...
分类:
编程语言 时间:
2019-10-21 20:51:59
阅读次数:
102
//通过canvas将图片转为jpg,使图片生成白色底便于查看预览 //list为原图片数组列表,index表示当前图片下标, //imgList表示已经通过canvas转化的图片列表 trasformImgType(list,index,imgList){ this.setData({ isSig... ...
分类:
微信 时间:
2019-10-21 16:04:06
阅读次数:
189
算法比较关键词二分递归分治回溯冒泡排序思想:两次循环,外层进行循环次数的控制,内层循环,进行数据之间的比较,大的数据上浮(下沉)12345678910111213141516171819202122232425262728293031323334353637383940#pragma mark - ... ...
分类:
移动开发 时间:
2019-10-21 00:14:12
阅读次数:
162
function insertSpacesIntoString( s, defVal ) { return s && (function( s ) { return s.length > 4 && (s .replace(/\s/g,'') .replace(/(.{4})/g,'$1 ')) .r... ...
分类:
其他好文 时间:
2019-10-19 12:50:10
阅读次数:
71
Homework 2: SDGB 7844Submit two files through Blackboard: (a) .Rmd R Markdown file with answers and codeand (b) Word document of knitted R Markdown fi ...
分类:
其他好文 时间:
2019-10-18 19:12:17
阅读次数:
138
//格式化日期字符串 String.prototype.jsonDateFormat = function (format) { var date, timestamp, dtObj timestamp = parseInt(this.toString().replace('/Date(', '')... ...
分类:
Web程序 时间:
2019-10-17 15:48:29
阅读次数:
93