質問: "sendrequest('fe0041')"; objct[0].parentnode.appendchild(ele);
回答: if('undefined' !== typeof window.addeventlistener) ele.addeventlistener('click',(function(parm){ return function(){sendrequest(parm)}; })('fe0041'),false); else if ('undefined' !== typeof window.attachevent) ele.attachevent('onclick',(function(parm){ return function(){sendrequest(parm)}; })('fe0041')) function sendrequest(parm){ alert(parm); }