Languages

Menu
Sites
Language
tizen web simulator에서는 실행이 되는데 핸드폰에 run 돌아가지않아 질문드립니다

현재 tizen을 run 돌렸을때에 

problems 창에서

warnings이 2개떴는데

하나는 

"Expected ' "use strict"; ' before 'this'.

하나는

오류가뜬 function에서

function sprite(img, x, y, width, height) {
    this.img = img;
    this.x = x*2;
    this.y = y*2;
    this.width = width*2;
    this.height = height*2;
};

마지막에 ;를 썼는데도 안썼다고 나오네요

뭐가 문제일까요 ㅠ

Responses

2 Replies
주영 jeon

The web console logging API (console.log, console.info, console.warn, console.error) has been disabled.
To activate it, you should launch project with Debug mode.

그리고 실제 Tizen web application 즉 핸드폰에 앱을 넣었을때 

위와같이 뜨네요 ㅠ

Armaan-Ul- Islam
 
 

여보세요

사용할 있습니다.
 
function sprite(img, x, y, width, height) {
    "use strict";
    this.img = img;
    this.x = x*2;
    this.y = y*2;
    this.width = width*2;
    this.height = height*2;
};
 
대 한 자세한 내용은
 
http://www.w3schools.com/js/js_strict.asp