js调用关系优化
parent
199d44e23d
commit
43bb7c8ea8
|
@ -21,7 +21,6 @@ import org.springframework.format.datetime.DateFormatter;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.WebDataBinder;
|
import org.springframework.web.bind.WebDataBinder;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import top.jfunc.common.utils.CollectionUtil;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -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' +
|
' <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>';
|
' </tr>';
|
||||||
$("#incomeTable").append(template);
|
$("#incomeTable").append(template);
|
||||||
|
//重新绑定删除事件和input修改事件
|
||||||
|
bindDeleteBtn();
|
||||||
|
bindIncomeChangeableInput();
|
||||||
}
|
}
|
|
@ -496,8 +496,6 @@
|
||||||
});
|
});
|
||||||
$("#incomeAddBtn").click(function () {
|
$("#incomeAddBtn").click(function () {
|
||||||
appendTrIncome();
|
appendTrIncome();
|
||||||
bindDeleteBtn();
|
|
||||||
bindIncomeChangeableInput();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
bindDeleteBtn();
|
bindDeleteBtn();
|
||||||
|
|
Loading…
Reference in New Issue