css引入外部文件:
<link rel="stylesheet" href="" type="text/css"> href路径是以工程名开始的
解决css缓存问题:
<%@page import="java.Math.Utils">
<link rel="stylesheet" href="/cmis/css/mm.css?num=<%=Math.ramdom() %>" type="text/css">
var str = "{"id":"1","name":"mao"}"; //加了双引号就是字符串
var str = {"id":"1","name":"mao"}; //没加双引号是json对象
----------------------------------------------------------------
js将json字符串转成对象方法:
var str = "{"id":"1","name":"mao"}";
var object = eval( "(" + str+ ")");