이것이 나에게 지적되면 완전한 바보처럼 느껴지 겠지만 구문 오류가 발생합니다. 문제가 어디에서오고 있는지 알 수 없습니다. 여기 내 코드입니다 (오류가 마지막 줄에 표시하지만, 그 원인은 그 선을 의심) :이 구문 오류를 찾을 수 없습니다.
// handle GCM notifications for Android
function onNotificationGCM(e) {
switch(e.event)
{
case 'registered':
if (e.regid.length > 0)
{
// Your GCM push server needs to know the regID before it can push to this device
// here is where you might want to send it the regID for later use.
PushWoosh.appCode = "33F93-5013B";
PushWoosh.register(e.regid, function(data) {
alert("PushWoosh register success: " + JSON.stringify(data));
}, function(errorregistration) {
alert("Couldn't register with PushWoosh" + errorregistration);
});
}
break;
고마워, 내가 여기 바보처럼 기분과 좌절이 나빴던 모양입니다.
힌트 : http://jslint.com 또는 http://jshint.com –
사실 실수를 포기할 수 있습니까? –
javascriptlint.com에 따르면 "SytaxError : syntax error"입니다. 내 코드의 특정 부분을 제거하면 오류가 사라지는 것을 알았지 만. 내가 편집하여 문제 코드가 무엇인지 보여 주겠다. 고마워요 – nikobradshaw