一旦有人向我指出这一点,我会觉得自己完全是个白痴,但是我遇到了一个语法错误,我无法弄清楚问题出在哪里。这是我的代码(错误出现在最后一行,但我怀疑是导致该错误的那一行):
// 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;
谢谢大家,我在这里感觉自己像个白痴,度过了令人沮丧的一天。