爲什麼我的jquery函數在點擊時運行兩次?jquery:函數運行兩次
$("a").click(processAction);
function processAction(e){
var clicked = e.target;
//show apply button.
$("#apply").live("click",function(e){
e.stopPropagation();
someFunction(clicked);
alert("this the array " + mydata);
clicked = "";
});
}
someFunction運行兩次!
+1爲你的頭像 – 2011-05-07 18:39:11
Brillant!謝謝! – Funky 2011-11-25 10:06:13