常用的方法JSON.stringify(),JSON.parse()1
JOSN.stringify(JsonObect) 这个函数是把Json对象转换成Json的字符串,如下 $.ajax({ type: "POST", url:
"../WebServ...
分类:
Web程序 时间:
2014-06-03 09:19:37
阅读次数:
219
因为远程验证用户名时可能会出现几种错误情况:1.用户名字符非法;2.长度超限;3.用户名已经存在;但remote返回的内容只能是布尔型的,即使用dataFilter来过滤也不知道如何对应的把错误信息也显示出来。下面是一段尝试代码,不过提示的效果不好,dataFilter:
function(data...
分类:
Web程序 时间:
2014-06-03 08:27:25
阅读次数:
278
jquery-autocomplete配置:语法:autocomplete(urlor
data, [options] )参数:url or data:数组或者url[options]:可选项,选项解释如下:1) minChars
(Number)在触发autoComplete前用户至少需要输入的字...
分类:
Web程序 时间:
2014-06-03 07:41:42
阅读次数:
323
This note summarizes articles from other places
about Microsoft Windows images for OpenStack creation, along with some first
hand experience. The whol...
Team QueueTime Limit:2000MSMemory
Limit:65536KTotal Submissions:2471Accepted:926DescriptionQueues and Priority
Queues are data structures which are kn...
分类:
其他好文 时间:
2014-06-03 04:15:17
阅读次数:
208
Given a stringSand a stringT, count the number
of distinct subsequences ofTinS.A subsequence of a string is a new string which
is formed from the orig...
分类:
其他好文 时间:
2014-05-30 15:58:40
阅读次数:
187
Design and implement a data structure for Least
Recently Used (LRU) cache. It should support the following
operations:getandset.get(key)- Get the valu...
分类:
其他好文 时间:
2014-05-30 15:09:06
阅读次数:
223
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-30 15:03:42
阅读次数:
237
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241
DescriptionAn ascending sorted sequence of
distinct values is one in which some form of a less-than operator is used to
order the elements from smalle...
分类:
其他好文 时间:
2014-05-30 14:31:10
阅读次数:
297