Explorar o código

add username confirm

schtonn %!s(int64=2) %!d(string=hai) anos
pai
achega
3a4298c4fd
Modificáronse 1 ficheiros con 1 adicións e 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
     }