2016年8月15日
摘要: 问题一:今天写了一个js外部文件,结果出现了乱码,原因是:js文件Properties的Resource的text file encoding的other应该为UTF-8问题二:js外部文件一般写在webRoot下面。 阅读全文
posted @ 2016-08-15 15:08 cyy_13 阅读(140) 评论(0) 推荐(0)
摘要: js设置cookie有很多种方法。第一种:(这个是w3c官网的代码)复制代码<script>//设置cookiefunction setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exday 阅读全文
posted @ 2016-08-15 13:04 cyy_13 阅读(535) 评论(0) 推荐(0)