To javascript programmers using alert() to debug.

作者:   發佈於:  

If you are using IE and/or do not have a good debugger or console.log-ish style of tool, here's some other quick and good alternatives to alert():

1. windows.status = message; 2. location.hash = message; 3. jQuery("input[type='text']").val(message);They are better because they are all non-blocking statements.