var ru_cryptopro_npcades_10_native_bridge = {
callbacksCount : 1,
callbacks : {},
resultForCallback : function resultForCallback(callbackId, resultArray) {
var callback = ru_cryptopro_npcades_10_native_bridge.callbacks[callbackId];
if (!callback) return;
callback.apply(null, resultArray);
},
call : function call(functionName, args, callback) {
var hasCallback = callback && typeof callback == "function";
var callbackId = hasCallback ? ru_cryptopro_npcades_10_native_bridge.callbacksCount++ : 0;
if (hasCallback) ru_cryptopro_npcades_10_native_bridge.callbacks[callbackId] = callback;
var iframe = document.createElement("IFRAME");
var arrObjs = new Array("_CPNP_handle");
try {
iframe.setAttribute("src", "cpnp-js-call:" + functionName + ":" + callbackId+ ":" + encodeURIComponent(JSON.stringify(args, arrObjs)));
}
catch(e) {
alert(e);
}
document.documentElement.appendChild(iframe);
iframe.parentNode.removeChild(iframe);
iframe = null;
},
};
已經得到這樣的警告: 警告1需要標識符或字符串C:\用戶\管理\文檔\ Visual Studio 2010的\項目\ WebAppSelf3 \ WebAppSelf3 \ js \ CadesLoad.js 453 1 WebAppSelf3
爲什麼?
'CadesLoad.js'的第453行是什麼? (我認爲這就是錯誤意味着看的地方) – 2013-03-07 01:52:02
@AlexWayne這裏提供的代碼的最後一行 – Secret 2013-03-07 01:52:50
@AlexWayne證明:http://s24.postimage.org/i6tsa511h/Screenshot_274.png – Secret 2013-03-07 01:54:01