Discover how to debug javascript in ie 11, include the articles, news, trends, analysis and practical advice about how to debug javascript in ie 11 on alibabacloud.com
Javascript debugging in IE browser and iejavascript debugging
In the previous blog post, I briefly learned about Dom objects. In this talk, I want to continue to learn Dom through code. However, during my blog writing, I often encounter errors in the code, the following describes how to debug javascript.
The above
?event.srcelement:e.target;6.event.x and event.y problem, ie under the event object has an X, Y property, but no Pagex,pagey property, FF under the event (E) object has the Pagex,pagey attribute, but does not have the X, Y property. Workaround:var Myx=event.x?event.x:event.pagex; var Myy=event.y?event.y:event.pagey;7.window.event problem. Window.event can only be run under IE, not in ff. This is because FF'
httpOnly , and httpOnly the set cookie will not be read by JavaScript. This behavior is implemented by the browser, the main browser support httpOnly options, ie from IE6 SP1 start support.To ensure security, the server should always use it when setting cookies httpOnly .(4) History historyThe object holds the browser's history, and JavaScript can invoke the hi
Script to do the B/s mode of the program many times to use JavaScript script, its function is very powerful, but debugging is very troublesome, because there is no suitable tool, in fact, IE support JavaScript script debugging, just need to the IE and script corresponding settings.
1. Internet Options-> Advanced-> Disa
Previous blog post, a simple understanding of the DOM object, this is to continue to learn the DOM through the code, but I wrote in the process of writing, the code is often wrong, here first introduce JavaScript debugging methods.Above is the main code of this study, we now go into the JavaScript debugging state to see.How to enter the debugging state of JavaScript
inaccessible x from external code at all x . In other words, a closure is a function that carries state, and its state can be completely hidden from the outside. math.pow (x, y) function, but given the frequent calculation of X2 or x3, we can use closures to create new functions pow2 and pow3 : ' Use strict '; function Make_pow (n) { returnfunction (x) { return math.pow (x, n); }}// Create two new functions:var pow2 = Make_pow (2); var pow3 = Make_pow (3); Console.log (Pow2
This period of time has been using AJAX technology to do things, so there will be more opportunities to learn JavaScript knowledge. Earlier on the internet to collect some about the JavaScript of IE operation code (specifically where cope, so the source is not added), feeling in the development process is very useful, of course, only applicable to
JavaScript is compatible with xml processing functions (xml synchronous asynchronous loading, xsl conversion, selectSingleNode, and selectNodes) in IE, FireFox, Chrome, and other browsers. It is often a headache for browser compatibility when writing web pages that process xml. So I encapsulate common xml operations as functions. After a period of improvement, it is very stable and comfortable to use.
Funct
Nicholas teaches you how to avoid the slow running of IE and other browsers due to JavaScript scripts
During web development, the browser prompts that the script runs for a long time and stops or continues. No matter what you choose, I believe you will try your best to keep this dialog box away from your users. But do you know how different browsers determine which scripts are out of control? This article
This article mainly introduces the way to test the ANGULARJS compatibility of IE browser to JavaScript, although with the recent listing of WINDOWS10, IE browser will become a history ... Need friends can refer to the next
Short version
To ensure that angular applications can work on IE, please confirm:
1. Polyfil
if the document type is declared, the chrome kernel still does not recognize Document.documentElement.scrollTop, only with Document.body.scrollTop.If you change to:function Setscrollbottom (value) {if (Document.body.scrollTop) {document.body.scrollTop + = value;} else { document.documentelement.scrolltop+= value;}}The effect will be reversed.To Qimei, of course, we can do this by adding code that identifies the browser type, but we can make a simple distinction with whether the Document.body.sc
I have been using ajax technology for this time, so I have more opportunities to learn JavaScript knowledge. I have previously collected some JavaScript code on the Internet for IE operations (I can't remember where the idea is, so I won't add the source). It feels useful in the development process, of course, this only applies to
We know that JavaScript executes scripts from inside to outside at run time, so the global object farthest from our script is likely to be accessed across several layers of scope. However, in IE, from the most to the outermost layer of time to spend a lot more than the other. Plus, JavaScript is a glue language that must be called DOM pairs to accomplish most of
date to the () object format. For some reason, don't ask me why, the above two browsers are not supported by the date format "YYYY-MM-DD" and therefore fail. I haven't managed to compile a definitive list of supported date formats, but I can tell you that the following format is absolutely supported for all browsers and suggests sticking to one of these to avoid errors:
var d = New Date (2011, 01, 07); //yyyy, MM-1, DD
var d = New Date (2011, 01, 07,
instantiation//set Jquery.fn to jQuery select jQuery.fn.init.prototype = JQ Uery.fn;The above code, in short, Jquery.fn is the $ () function that returns the value of the prototype object.In the 2nd chapter of the note we have learned that adding properties or methods to the object's prototype will automatically get those methods.2, try 2.1, expand the method2.2. Can I extend the properties?As we expect: perfect support.3. What can I do? What's the use? You can implement any function you want t
2009
-
04
-
11 Compatible with IE and Firefox, It is set as the home page and the favorite Javascript
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Function
Addcookie (){
//
Add to favorites
If
(Document. All ){Window. External. AddFavorite (
'
Http://taotao.wsyren
operation: The value of InnerText is actually a series of processing of innerHTML property values, and then return, the following steps1. Parsing the HTML tags;2. The CSS style with limited parsing and rendering;3. Convert the ASCII entity to the corresponding character;4. Remove the format information (such as \ t \ r and \ n, etc.) and combine multiple contiguous spaces into one.Browser effects are not uniformTextcontent:Browser support: Ie9~11, Fi
javascript| Control | Calendar
Web Calendar control A lot of online, the function is also very powerful, but most of them do not support Firefox, their leisure wrote a, has the following characteristics:
Characteristics:
First, support Ie6,firefox
Second, support Chinese and English calendars, free to expand other languages
Third, when you encounter the Select Drop-down box, take a hidden approach
Four, using div as a calendar container, will not be
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.