创建Number对象:var myNum = new Number(value);var myNum = Num(value);var myNum = value;//必要时会转换成Number对象,如myNum.toString()先转换,再调用。var myNum =Number.MAX_VAL...
分类:
编程语言 时间:
2014-07-22 22:55:54
阅读次数:
237
filter是对数据进行过滤操作,比如按某个字段搜索、格式化数据等等,是一个非常有用的接口。下面就简单介绍下它的用法。AngularJS自带的filter接口,|是filter的分隔符,参数用:分隔;currency,格式化number,货币化,默认是转化成美元 param(number,symbo...
分类:
Web程序 时间:
2014-07-22 22:54:56
阅读次数:
247
本文原题: LeetCode.给定 n, 求解独特二叉搜寻树 (binary search trees) 的个数.什么是二叉搜寻树?二叉查找树(Binary Search Tree),或者是一棵空树,或者是具有下列性质的二叉树: 若它的左子树不空,则左子树上所有结点的值均小于它的根结点的值; 若它的...
分类:
其他好文 时间:
2014-07-19 21:34:00
阅读次数:
292
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求超...
分类:
Web程序 时间:
2014-07-19 21:31:01
阅读次数:
224
There are N integers (1A[j].InputThe first line of the input contains the number N. The second line contains N numbers A1...AN.OutputWrite amount of s...
分类:
其他好文 时间:
2014-07-17 00:24:27
阅读次数:
236
jqGrid的格式化是定义在语言包中·$jgrid={·...·formatter:{·integer:{thousandsSeparator:"",defaultValue:'0'},·number:{decimalSeparator:".",thousandsSeparator:"",decim...
分类:
其他好文 时间:
2014-07-16 23:43:21
阅读次数:
664
JavaScript 对象除了数字、字符串、布尔值、null、undefined(都不可变)这5种简单类型,其他都是对象。javascript 存在2套类型系统,一套是元类型,用typeof可以检验,有六种:"number"、"string"、"boolean"、"object"、"function...
分类:
编程语言 时间:
2014-07-16 17:00:12
阅读次数:
249
/*
G - 二分
Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu
Submit
Status
Description
Given n points (1 dimensional) and q segments, you have to find the number of points th...
分类:
其他好文 时间:
2014-07-16 16:42:15
阅读次数:
245
Number sequence
Given a number sequence which has N element(s), please calculate the number of different collocation for three number Ai, Aj, Ak, which satisfy that Ai Ak and i
Input
The fi...
分类:
其他好文 时间:
2014-07-16 09:51:23
阅读次数:
201
Given a number ‘n’, find the smallest number ‘p’ such that if we multiply all digits of ‘p’, we get ‘n’. The result ‘p’ should have minimum two digits...
分类:
其他好文 时间:
2014-07-16 08:55:04
阅读次数:
208