已定义:
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:\Users\Administrator\documents\visual studio 2010\Projects\WebAppSelf3\WebAppSelf3\js\CadesLoad.js 453 1 WebAppSelf3
为什么?