toJSON 把JS对象{ 'x': 2, 'y': 3 }转为JSON对象格式的字符串 不能转化字符串 比如"{ 'x': 2, 'y': 3 }"可以转格式不标准的json对象格式比如{name:haha,age:11}例:var data={name:'haha',age:11}var fo....
分类:
Web程序 时间:
2015-05-12 22:21:05
阅读次数:
129
/*圆周率计算公式:4*(1-1/3+1/5-1/7+1/9-1/11+......),当1/n 0.0000001){re += Math.Pow(-1,n-1) / ( 2 * n - 1);n++;}Console.WriteLine("4 * re")//方法二double b = 0;fo...
分类:
其他好文 时间:
2015-05-11 21:25:03
阅读次数:
111
参考资料:http://www.delphipages.com/forum/showthread.php?t=103412var dtpDate: TDateTimePicker;begin dtpDate.Format := 'yyyy-MM-dd'; ShowMessage('时间:' + Fo...
这几天学习Mybatis框架 , 发现有很多地方不是很明白, 查了很多资料, 今天有空做个总结 , 记录一下自己学习中遇到的问题 , 以及解决方法,下面开始: 什么是Mybatis MyBatis 本是apache的一个开源项目iBatis, 2010年这个项目由apache software fo...
分类:
其他好文 时间:
2015-05-09 21:55:35
阅读次数:
262
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2015-05-08 10:46:27
阅读次数:
112
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-05-08 01:30:06
阅读次数:
127
'; if((strtotime($_SESSION['time'])+60)$v) { $o.= "$k=".$v."&"; } $post_data=substr($o,0,-1); $this_header = array("content-type: application/x-www-fo...
分类:
移动开发 时间:
2015-05-07 16:18:20
阅读次数:
197
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-05-06 21:04:50
阅读次数:
182
1.复制一张表的数据到另一张表insert into jct_sys_lock_tbl_new (BGN_DT, END_DT, TYPE, DESCR, flag, format, range, count) select BGN_DT, END_DT, TYPE, DESCR, flag, fo...
分类:
其他好文 时间:
2015-05-06 20:59:32
阅读次数:
149
题意:给定4321 5678,结果再反转(1234+8756)一开始以为是poj1503一样,就稀里糊涂的敲代码,实际上有不同如题:先求1234 +8765----------------------这样就相似poj150343215678不过在str串与fin相加时,就按给定的顺序加就行fo...
分类:
其他好文 时间:
2015-05-06 09:15:43
阅读次数:
176