【问题标题】:DOJO 'TypeError:Cannot read property 'style' of null' error response while sending xhrPost request发送 xhrPost 请求时 DOJO 'TypeError:Cannot read property 'style' of null' 错误响应
【发布时间】:2011-06-15 14:30:46
【问题描述】:

我正在使用 DOJO 框架向服务器提交表单详细信息。 xhrPost 方法用于将表单提交到服务器。使用 JSON 消息格式。

当这适用于大多数桌面浏览器和一些移动浏览器时,我收到错误

TypeError:Cannot read property 'style' of null

与某些移动设备一致。

请帮忙。

【问题讨论】:

  • 如果可能的话,您能否发布一些失败的代码和堆栈跟踪?如果您在移动设备上使用此功能,请指定哪个。

标签: javascript json dojo


【解决方案1】:

尝试将dojo代码包装在:

dojo.ready(function(){
    ...
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-26
    • 2016-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-10
    • 2018-05-16
    相关资源
    最近更新 更多