eval和json.parse的使用eval:来源于官网定义和用法eval() 函数可计算某个字符串,并执行其中的的 JavaScript 代码。语法: eval(string)参数 描述string 必需。要计算的字符串,其中含有要计算的 JavaScript 表达式或要执行的语句。返回值通过计算...
分类:
Web程序 时间:
2015-06-12 11:31:24
阅读次数:
129
提供的是一种思路,和具体语言无关。string test = "good good study day day up";string r = test.Replace("oo","");int num = (test.Length - r.Length) /"oo".length; Consol.....
1、获取请求参数值的方法 获取提交的Name-Value数值 getParameter(name) 获取提交的Name-values数值 getParameterValues(name)2、getParamter方法 常用于传入的参数中,一个名字对应一个值的形式 String r...
分类:
其他好文 时间:
2015-06-12 06:28:38
阅读次数:
147
private void DirPathAll(string dirpath) { //本目录下的文件 var paths = Directory.GetFiles(dirpath); foreach (var path...
分类:
其他好文 时间:
2015-06-12 06:27:25
阅读次数:
87
(function($){/* 图片滚动效果 add 2014-05-14 by js明哥哥 博客地址:http://home.cnblogs.com/u/huzhiming/ @jQuery or @String box : 滚动列表jQuery对象或者选择器 如:滚动...
分类:
其他好文 时间:
2015-06-12 06:22:16
阅读次数:
125
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2015-06-12 06:18:40
阅读次数:
90
//Java线程优先级范围1-10 默认为5 在cpu同一时间片内 优先级大的抢占cpu优势大 public class Test { public static void main(String[] args) { Thread t1 = new MyThread1()...
分类:
编程语言 时间:
2015-06-12 06:18:33
阅读次数:
131
String的常用方法 // length属性:获取字符串的字符个数。 var s='爱像一阵风'; alert(s.length); // charAt(index)方法:获取指定索引位置的字符,索引从0开始 var s1='我不要再想你'; alert(s1.c...
分类:
编程语言 时间:
2015-06-12 00:50:39
阅读次数:
110
转载:http://www.cnblogs.com/xshy3412/archive/2007/08/29/874362.html1,int转成string用toString或者Convert.toString()如下例如:int varInt = 1;string varString = Conv...
1.比较Collection和Collections的区别=====
(1)、java.util.Collection是一个集合接口。它提供了对集合对象进行基本操作的通用接口方法。Collection接口在Java类库中有很多具体的实现。Collection接口的意义是为各种具体的集合提供了最大化的统一操作方式.
(2)2、java.util.C..
分类:
其他好文 时间:
2015-06-11 23:18:57
阅读次数:
128