js拦截alert对话框另类应用
实现代码如下: var myAlert=alert; window.alert=function(msg){ //your code myAlert (msg+"-TEST"); } function opened(msg){ alert(msg); }
实现代码如下: var myAlert=alert; window.alert=function(msg){ //your code myAlert (msg+"-TEST"); } function opened(msg){ alert(msg); }
一、打开、关闭文件open的返回值用来确定打开文件的操作是否成功,当其成功时返回非零值,失败时返回零,因此可以如下判断:if (open(MYFILE, "myfile")){# here is what to do if the file opened successfully}当文件操作完毕后,