the Internet is now popular Web2.0 technology, when talking about it, you will think of Ajax . Hidden in Ajax a large part of JavaScript Code .
IfJavascriptThe code is wrong. AddAlert ()???Here we provide a brand newJSDebugging method,
More advanced debuggingJSIn this article, we hope you can discuss it together!
First, the computer must be installedMicrosoft Word 2000Above (My isWord2003).
Open Word In the left-side Navigation Pane Selected " Tools " --- " "Macro ( M )" ----- " " Microsoft Script compiler (W) "Such
Install the compiler as prompted. After the installation is complete,WordCode conversion interface.
the second is to ie the browser settings are reduced,
in ie " Tools " - " " Internet options .. " --- "advanced"
SetDisable script debugging2If the machine is selected.
For example
After removing the selection, open a newIE, You will findIE"View"More Columns
"Script debuggingProgram"Careful people can find that there is no such option before it is installed.
For example
Finally, debug our JS program, run the page to JS on the problematic page,
Then clickIE"View"---""Script debugging program"-"" Open"
(It may be2Tips, select "OK ).
make the following settings before debugging:
in the menu," debug " || " window " " local variable " " Monitoring " " instant "
To help them out, their functions are as follows:
Local variable: AllVaRThe value
Monitoring:When you know the variable name and the value, you can enter the variable name here,
Then press enter to return the value.
Instant: Click here to change the value of a variable. The name of the input variable corresponds to the changed value.Enter
F10YesF11Follow up(View the debugging menu in detail)
A similar interface appears. If there is a problem, set a "breakpoint" and refresh the page for debugging.
You are stillJSProblems? Hope to read this articleArticleI will give it to you laterJSCareer help.