经常写到,但不知道叫什么?
//函数直接量:
var fun = function(){};
//数组直接量:
var arr = [1,3,5,9];
//对象直接量:
var o = {a:1,b:2,c:3};
//正则表达式直接量:
var reg = \/1-3*\;