javascript note

boolean("false") =====>true

 

Date(1387123200000)不等于new Date(1387123200000)

用Date(1387123200000)

http://www.w3school.com.cn/js/jsref_obj_date.asp

getMonth()是用0开始的

getDay()是从0开始的

getDate() 从 Date 对象返回一个月中的某一天 (1 ~ 31)。 1 3
getDay() 从 Date 对象返回一周中的某一天 (0 ~ 6)。 1 3
getMonth() 从 Date 对象返回月份 (0 ~ 11)。 1 3
getFullYear() 从 Date 对象以四位数字返回年份。 1 4
getYear() 请使用 getFullYear() 方法代替。

 

GET请求中,JSON不需要JSON.stringify(data_send)

POST请求中, JSON需要JSON.stringify(data_send)

 

 

 

posted @ 2013-12-18 22:11  daishuguang  阅读(193)  评论(0编辑  收藏  举报