1234567891011121314151617181920212223242526272829303132333435 |
- var lock = false
- function output(msg) {
- $('#output').text(msg)
- lock = false
- }
- function wait_msg() {
- $('#output').text("响应有点慢,别着急...")
- lock = true
- }
- function run_app() {
- $("#updateConfig").click(function () {
- wait_msg()
- $.get("/server/updateConfig", function (body, status) {
- output(body.data)
- })
- })
- $("#updateLogic").click(function () {
- wait_msg()
- $.get("/server/updateLogic", function (body, status) {
- output(body.data)
- })
- })
- $("#updateProto").click(function () {
- wait_msg()
- $.get("/server/updateProto", function (body, status) {
- output(body.data)
- })
- })
- }
|