also such a language), there is a powerful development tool, but because it has
Most widely supported(All modern browsers support) and
Cheap(Because it is a Web standard, there will be a lot of people, and the cost of learning and using is very low ). In fact, for HTML-based Web development, it is almost impossible to avoid using cirpt. From the perspective of improving the user interaction experience, rather than thinking about the problem from the perspective of pure technology, we do not hav
, there are a lot of people, the cost of learning and using is very low). In fact, HTML based WEB development, to avoid javascirpt is almost impossible. From the perspective of improving the user interaction experience, rather than thinking from a purely technical perspective, there is no need to deliberately avoid JavaScript.
The original JavaScript debugger is
(Because it is a Web standard, there will be a lot of people, and the cost of learning and using is very low ). In fact, for HTML-based web development, it is almost impossible to avoid using cirpt. From the perspective of improving the user interaction experience, rather than thinking about the problem from the perspective of pure technology, we do not have to deliberately avoid JavaScript.
The most primitive
select a control with a yellow rectangle in the diagram, a drop-down list on the left to select the file, and a button on the right to start debugging. When the click to start debugging, the debugger will maximize the window, we found in the selected files need to debug the location, click on the left sidebar to add breakpoints to debug.
When a program runs to our breakpoint, it can be debugged.
here, we can use the shortcut keys to operate, th
Currently, Common Browser IE, Chrome, and Firefox all have corresponding script debugging functions. As our. NET camp, it is enough to learn how to debug JS in IE. After mastering the debugging methods in IE, the debugging methods in Chrome and Firefox become quite simple.
Debug in F12 Developer Tools
Open IE and press the F12 key to open the developer tool, which is a built-in developer development tool for IE, this allows developers to track, debug, and use HTML, CSS,
This article is translated from the Bada development website of Samsung.
Javascript debugger (very friendly, Just Like Chrome's debugger ..)
You canEmulator or targetDeviceUseJavascript debugging tool to debug your web debugger.Javascript is based on the web engine Viewer (version 71484) and is modified to support remote debugging.
note
boxes aren't lining up correctly it can be difficult to understand why. let firebug be your eyes and it will measure and adjust strate all the offsets, margins, borders, padding, and sizes for you.
Learn more
Monitor network activity
Your pages are taking a long time to load, but why? Did you go crazy and write too much JavaScript? Did you forget to compress your images? Are you ad partner's servers taking a siesta? Firebug breaks it all down for you
When you first use QT Creator, you want to use breakpoints to debug JavaScript code. But after pressing the debug key, but prompted the debugger is not configured, let me more depressed.Well, depressed is said, let's say happy. To QT Creator debugging problem, we need to follow the following steps to complete the debugger download, installation, configuration:1,
Install Firebug First, search for installation in Firefox extensions.Then, in the page, enable the script in Firebug:Then add the debugger command in some places on the page, such as the following page code:DOCTYPE HTML>HTML>Head>MetaCharSet= "Utf-8" />title>JS Popup New Windowtitle>Scripttype= "Text/javascript"> functionopen_new (obj) {Debugger; window.open (
JavaScript in some way. If you have a standard JavaScript function or prototype type built into an external JavaScript file, you should automatically get IntelliSense done when you use it in Visual Studio 2008.
Obviously, when the external JS file has IntelliSense capabilities, the developer can invoke it like an internal J
Installation Method:1. ie properties-advanced-Disable script debugging, and remove the check box.2. Download Microsoft Script debugger and install
The following describes how to debug the debugger.html file,CodeAs follows:
Html
>
Head
>
Script
Language
= "JavaScript"
>
Function Mydebugger () { VaR A = 1 , B = 2 ; VaR T;T = A;A = B;B = T;}
S
("X}}else if (x>5){if (y==10){Alert ("X>5 y==10");}Else{Alert ("x>5y!=10");}}var inumber=number (Prompt ("Enter a number from 5 to 100"));if (IsNaN (Inumber))document.write ("Please confirm your input is correct");else if (inumber>100| | INUMBERdocument.write ("The number range you entered is no longer between 5 and 100");Elsedocument.write ("The number you entered is:" +inumber);Switch statementUse a switch statement when you need to judge more. Co
Basic JavaScript flow control statement usage, javascript statement
Part 3: Process Control statements
JavaScript code is the writing position:
JavaScript code should be written in .
Or as an external reference
Use a semicolon to
Abbreviated Javascript Condition Statement (recommended) and short javascript statement
Many abbreviated conditional expression statements are often seen in the code of cool people everywhere. After reading some articles about this, I think3 ways 2 say ifThis article (http://www.thomasfrank.se/3_ways_2_say_if.html) is
JavaScript If ... Else statementconditional statements are used to perform different actions based on different conditions. conditional statementsOften when writing code, you always need to perform different actions for different decisions. You can use conditional statements in your code to accomplish this task.In JavaScript, we can use the following conditional statements:· if
Document directory
Instance 1
Instance 2
Syntax:
Instance
Syntax:
Instance:
The Condition Statement in Javascript is used to complete the action under different conditions.Instance
If statement
How to compile an if statement.
If... else statement
JavaScript statementsA command issued by a JavaScript statement to the browser. The purpose of the statement is to tell the browser what to do.The following JavaScript statement outputs the text "Hello World" to the HTML element o
JavaScript statementsA command issued by a JavaScript statement to the browser. The purpose of the statement is to tell the browser what to do.The following JavaScript statement outputs the text "Hello World" to the HTML element o
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.