[Javascript] How to insert line number automatically for debug Posted by Keep Growing on 凌晨4:06 in javascript / No comments add “Line # 999 \n” to each line in the script that you want numbered, e.g., alert ( “Line # 999 \n”); run the perl below: cat my_js.js | perl -ane “{ s/Line # \d+ /Line # _;}” > C_my_js.js; mv C_my_js.js my_js.js Reference: LINE equivalent in Javascript Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook Related Posts:[Javascript] Call top frame function by using javascript [Javascript] Call top frame function by using javascript At top frame: <script language="javascript"> function freezy(){ if(parseInt(… Read More[HTML][Javascript] How to input a value, then send to select field [HTML][Javascript] How to input a value, then send to select field Method 1 : var cf = document.forms[0]; var tbox=cf.List; … Read More[Javascript] function return true/false[Javascript] function return true/falseExplain : When myFunction() return false will popup the window which show bingo.<script>function myFuncti… Read More[HTML][Javascript] Select of html tag - Delete option [HTML][Javascript] Select of html tag - Delete option The value of i must point to the max length. And countdown to 0. cf.remove will work, o… Read More[Javascript] Target window or Frame [Javascript] Target window or Frame Reference : Target Window or Frame… Read More
0 意見:
張貼留言