js调用关系优化

master
xxssyyyyssxx 2021-11-03 15:12:14 +08:00
parent 199d44e23d
commit 43bb7c8ea8
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,6 @@ import org.springframework.format.datetime.DateFormatter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.*;
import top.jfunc.common.utils.CollectionUtil;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

View File

@ -203,4 +203,7 @@ function appendTrIncome() {
' <td><button type="button" class="am-btn am-btn-warning am-btn-xs am-modal-line-delete"><span class="am-icon-minus"></span></button></td>\n' +
' </tr>';
$("#incomeTable").append(template);
//重新绑定删除事件和input修改事件
bindDeleteBtn();
bindIncomeChangeableInput();
}

View File

@ -496,8 +496,6 @@
});
$("#incomeAddBtn").click(function () {
appendTrIncome();
bindDeleteBtn();
bindIncomeChangeableInput();
});
bindDeleteBtn();