我想用parameter.But调用下面的ajaxSend函数获取非法调用错误
var req = Ajax.getXMLHttpRequest();//raw xhr
var ajaxSend = req.send;
req.send = function (param) {
req.setRequestHeader('aaa','bbb');
eval(ajaxSend(param));
}
return req;
答案 0 :(得分:0)
你试过eval(“ajaxSend(param)”); ?