Web services 调用API时,加载程序映像未加载到chrome中
我在chrome浏览器中遇到了问题 加载程序图像或文本未加载,而API调用 Chrome在调用API时会延迟其他操作,并导致阻塞 我的代码结构是Web services 调用API时,加载程序映像未加载到chrome中,web-services,api,google-chrome,browser,dojo,Web Services,Api,Google Chrome,Browser,Dojo,我在chrome浏览器中遇到了问题 加载程序图像或文本未加载,而API调用 Chrome在调用API时会延迟其他操作,并导致阻塞 我的代码结构是 Placed a span with loader background, <span id='logging' class='hide'></span> Click on 'Login' Button, { dojo.query('#logging').removeClass('hide'); // Show t
Placed a span with loader background,
<span id='logging' class='hide'></span>
Click on 'Login' Button,
{
dojo.query('#logging').removeClass('hide'); // Show the loader
<API Call Script here.>
dojo.query('#logging').addClass('hide'); // Hide the loader
}
放置了一个带有加载程序背景的跨距,
点击“登录”按钮,
{
query('#logging').removeClass('hide');//显示加载程序
query('#logging').addClass('hide');//隐藏加载程序
}
它一直在浏览器IE、Firefox中工作。。等等,但不在chrome浏览器中
有人能帮忙吗?
多谢各位 您使用的功能是否正确扩展了查询?就本机选择器引擎是否“足够”而言,dojo.query的加载方式有所不同 尝试在查询调用周围向dojo/NodeList dom添加一个require(仅限1.7+)
require(["dojo/query", "dojo/NodeList-dom"], function(dj_query){
dj_query('#logging').removeClass('hide'); // Show the loader
<API Call Script here.>
dj_query('#logging').addClass('hide'); // Hide the loader
});
require([“dojo/query”,“dojo/nodelistdom”],函数(dj_query){
dj_查询(“#日志记录”).removeClass('hide');//显示加载程序
dj_查询('#logging').addClass('hide');//隐藏加载程序
});
what'stuckness'?:)