我正在爲Windows Phone 8(Javascript + HTML5)(Cordova 2.8.1)開發phonegap應用程序,我想使用Azure mobileservice作爲我的應用程序的數據庫,但發生錯誤這個指令var MobileServiceClient = WindowsAzure.MobileServiceClient("...","...");
你能告訴我什麼是錯的嗎?Windows Azure未定義JavaScript錯誤
我把這些腳本:
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;
}
什麼錯誤?也許嘗試'WindowsAzure.MobileServices.MobileServiceClient' – showdev