소스 검색

cookie int

schtonn 2 년 전
부모
커밋
06ba499779
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      js/paint.js

+ 1 - 1
js/paint.js

@@ -67,7 +67,7 @@ function checkCookie() {
 
 function getId(){
     var cookieId=getCookie('id')
-    if(cookieId!='')return cookieId
+    if(cookieId!='')return parseInt(cookieId)
     else{
         var newId=Math.ceil(Math.random() * 1000000)
         setCookie('id',newId,365)