javascript行阻止google应用程序运行

javascript行阻止google应用程序运行,javascript,google-chrome-app,Javascript,Google Chrome App,在添加以下脚本之前,我的google应用程序运行得非常完美: chrome.identity.getProfileUserInfo(email){ alert(email); } 它现在甚至不会发射。我写对了吗?这可能不是答案,但你试过把它改成 chrome.identity.getProfileUserInfo=function(email){alert(email);}这可能不是答案,但您是否尝试将其更改为 chrome.identity.getProfileUserInfo=fu

在添加以下脚本之前,我的google应用程序运行得非常完美:

chrome.identity.getProfileUserInfo(email){
    alert(email);
}

它现在甚至不会发射。我写对了吗?

这可能不是答案,但你试过把它改成


chrome.identity.getProfileUserInfo=function(email){alert(email);}

这可能不是答案,但您是否尝试将其更改为


chrome.identity.getProfileUserInfo=function(email){alert(email);}

除了语法错误之外,您还不能在chrome应用程序中使用alert()

还值得注意的是,中不支持“alert()”函数 Chrome打包的应用程序。如果需要弹出阻止UI的消息, 我强烈推荐基于jQuery的blockUI插件


alert()会阻止javascript执行并扰乱流程,因此google在chrome应用程序中禁用了它。

除了语法错误之外,您还不能在chrome应用程序中使用alert()

还值得注意的是,中不支持“alert()”函数 Chrome打包的应用程序。如果需要弹出阻止UI的消息, 我强烈推荐基于jQuery的blockUI插件


alert()会阻止javascript执行并扰乱流程,因此google在chrome应用程序中禁用了它。

这可能不是答案,但您是否尝试将其更改为
chrome.identity.getProfileUserInfo=function(email){alert(email);}
如果您能选择我的答案作为有效答案,我将不胜感激,因为我是一个非常新的用户,正在努力获得声誉。我想它也应该给你一些。很高兴能帮上忙!希望你的项目进展顺利!这可能不是答案,但您是否尝试过将其更改为
chrome.identity.getProfileUserInfo=function(email){alert(email);}
如果您能选择我的答案,我将不胜感激,因为我是一个非常新的用户,正在尝试获得声誉。我想它也应该给你一些。很高兴能帮上忙!希望你的项目进展顺利!也被库而不是本机对话框元素禁用了?也被库而不是本机对话框元素禁用了?