摘要:
回调方法里面只能返回 字符串window.onbeforeunload = funcReffuncRefis a reference to a function or a function expressionThe function should assign a string value to thereturnValueproperty of the Event object and return the same stringwindow.onbeforeunload = function(e) {return 'Dialog text here.';};jQuery( 阅读全文