Windows Azure是未定义的JavaScript错误
Windows Azure is Undefined JavaScript error
我正在为Windows Phone 8(Javascript+HTML5)(Cordova 2.8.1)开发一个phonegap应用程序,我想使用Azure mobileservice作为我的应用程序的数据库,但此指令var MobileServiceClient = WindowsAzure.MobileServiceClient("...","...");
中出现错误,你能告诉我出了什么问题吗?
我称这些脚本为:
type="text/javascript" src='http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js'
type="text/javascript" src='https://partnergymservice.azure-mobile.net/client/MobileServices.Web-1.0.0.min.js'
type="text/javascript" src="cordova.js"
这是我的脚本文件:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
try
{
var client = new WindowsAzure.MobileServiceClient(
".....",
"......");
}
catch (err) {
element.innerHTML = err.message;
}
您需要安装Azure移动服务SDK。
"入门"教程的第4步对此进行了概述。
如果您使用GWT,则需要在WindowsAzure前面使用$wnd,如下所示:
var client = new $wnd.WindowsAzure.MobileServiceClient(
"https://xxxxx.azure-mobile.net/",
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
);
相关文章:
- JavaScript错误:Microsoft JScript运行时错误:应为对象
- 将字符串拆分为数组时出现JavaScript错误
- 处理JSON字符串会导致JavaScript错误
- 使用AJAX在剑道网格中分组时出现Javascript错误
- Ajax对web URL的调用导致javascript错误
- 为什么当我尝试在Ionic中使用列表时会出现此JavaScript错误
- 可以't解决Javascript错误
- django出现神秘的javascript错误
- JavaScript错误无效的限定符
- 使用主题运行时portlet liferay时出现Javascript错误
- 绑定函数时在IE7中未实现Javascript错误
- Javascript错误:未捕获引用错误:未定义编辑
- eventListener出现JavaScript错误
- sharepoint站点的internet explorer中出现Javascript错误
- LoadControl HttpCompileException自定义服务器控件JavaScript错误
- 销毁Bootstrap popover时出现Javascript错误
- 无法加载Javascript错误XMLHttpRequest
- 使用JSON.parse时出现无效字符javascript错误
- 修复Javascript错误
- 模板字符串上的netbeans javascript错误(backticks)