Explorar el Código

add username confirm

schtonn hace 2 años
padre
commit
3a4298c4fd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      js/paint.js

+ 1 - 1
js/paint.js

@@ -50,7 +50,7 @@ function getCookie(cname) {
 function checkCookie() {
     var username = getCookie("name");
     if (username != "") {
-        var result = confirm("确认上传?" + username);
+        var result = confirm(username + ",确认上传?");
         if (result) return username
         else return false
     }