虽然学习js有一段时间了,但是对js的基础语法却是有些生疏。最近在看jquery源码,决定随带总结一些基础的语法知识。今天总结一下数据类型和typeof,这在写js的时候,是不得不知道的知识。 数据类型: js有5中基本的数据类型:undefined,Null,Boolean,Number,...
分类:
其他好文 时间:
2014-07-31 23:42:10
阅读次数:
231
E -Palindromic NumbersTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionA palindromic number or numeral palindrome is a 'symm...
分类:
其他好文 时间:
2014-07-31 23:36:50
阅读次数:
360
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-07-31 23:19:10
阅读次数:
259
/*
2^x mod n = 1
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 11800 Accepted Submission(s): 3673
Problem Description
Give a number n...
分类:
其他好文 时间:
2014-07-31 20:58:04
阅读次数:
171
Problem Description:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they...
分类:
其他好文 时间:
2014-07-31 20:48:17
阅读次数:
215
1.The use of state-observation transition functions rather than the separate transition and observation functions in HMMs allows us to model transitio...
分类:
其他好文 时间:
2014-07-31 20:43:27
阅读次数:
179
(function(){ var tit = $("#tab a"), con = $("#tcontent>div"), cur = 'cur'; tit.mousemove(function(){ var index = tit.index(th...
分类:
其他好文 时间:
2014-07-31 19:57:47
阅读次数:
184
1. c++中string到int的转换1) 在C标准库里面,使用atoi:#include #include std::string text = "152"; int number = std::atoi( text.c_str() ); if (errno == ERANGE) //可能是s....
分类:
编程语言 时间:
2014-07-31 19:48:27
阅读次数:
294
在一次做开发的时候,遇到需要将数据表的字段类型由number改成varchar,可是该字段又有值,用 alter table t-name modify cname newType;会报错。话说,当时在网上没找到合适的解决办法,很苦恼!今天在博客园看到解决这个问题的办法,很nice,分享!当要修改的...
分类:
数据库 时间:
2014-07-31 19:42:07
阅读次数:
227
本篇主要讲解$http(config)的config中的timeout项:$http({ timeout: number})数值,从发出请求开始计算,等待的毫秒数,超过这个数还没有响应,则返回错误demo:html: 18.4 $http(2) {{data}}js:var js...
分类:
其他好文 时间:
2014-07-31 19:34:27
阅读次数:
9782