我應該添加一個;將一個函數放入一個變量後的? 這段代碼對不對?我應該添加一個;將函數放入變量後?
pj.RemoveProjectTask = function (e, scope) {
e.preventDefault();
scope.remove();
};
pj.ToggleProjectTask = function (e, scope) {
e.preventDefault();
scope.toggle();
};
或此代碼:
pj.RemoveProjectTask = function (e, scope) {
e.preventDefault();
scope.remove();
}
pj.ToggleProjectTask = function (e, scope) {
e.preventDefault();
scope.toggle();
}
http://stackoverflow.com/questions/444080/do-you-推薦使用分號後在每個語句中的JavaScript –