Today I would often use JS when the three problems encountered, netizens can also give me a message to write more frequently asked questions.
One, JS script caching problem
A: This problem is one of the most common problems that you have encountered because of the modification of JS content debugging
Does not show the results of the new write code, because JS in order to speed up the page execution, the current page will use the cache to maintain
The same connection as the current call. For easy debugging at development time, you can add a random function to the back of the connection address.
As the original address: Header.js increased random after header.js?12581
Second, local debugging JS script does not work
A: Because of the need for head support when using AJAX to pass parameters, we can only do so under the site
Success, such as we put under Apache or under IIS for debugging.
Third, debugging code to find errors difficult
A: This is JS debugging has been a long time problem, simple point we can use IE default prompt error box, there are
Is that we can use DW CS4 to provide the correct error, or through professional plug-ins such as: Firbug, etc.