function test(e) { alert(e.id); }
var f = "test";
function test2() {
var t = {
"id": 184,
"title": "信访条例",
"pubdate": "2014-09-02",
"description": "新出通知,要求涉诉信访工作",
"weight": 12
};
window[f](t)
}
var f = "test";
function test2() {
var t = {
"id": 184,
"title": "信访条例",
"pubdate": "2014-09-02",
"description": "新出通知,要求涉诉信访工作",
"weight": 12
};
window[f](t)
}
var f = "test";
function test2() {
var t = {
"id": 184,
"title": "信访条例",
"pubdate": "2014-09-02",
"description": "新出通知,要求涉诉信访工作",
"weight": 12
};
var ff = eval(f);
new ff(t);
}
哪一种效率高一点