window.wm = null; // 只需初始化一次 var productNumber = 'YD00157343455660'; try { if(typeof initWatchman === 'function'){ initWatchman({ productNumber: productNumber, onload: function (instance) { window.wm = instance }, onerror: function (argument) { // console.log(argument) } }); } }catch(e){}