![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
jacky1988li
这个作者很懒,什么都没留下…
展开
-
运用JS设置cookie、读取cookie、删除cookie
function setCookie(name,value) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape (value) + ";expire转载 2014-07-01 22:14:25 · 216 阅读 · 0 评论 -
js try catch throw
test hello var add = function(a, b) { if (typeof a !== 'number' || typeof b !== 'number') { throw { name: 'TypeError', message: 'add needs numbers'原创 2014-08-06 17:08:38 · 280 阅读 · 0 评论