/* * detects if the specified plugin is installed * * pluginname plugin name * /function Checkplugins (pluginname) { var np = Navigator.plugins; if (window. ActiveXObject) { //IE //ActiveXObject object name var activexobjectname = Pluginname + "." + Pluginname; try { var axobj = eval ("New ActiveXObject (Activexobjectname);"); Convert object to Boolean t
Recently, in the article about the shortest IE browser judgment code of situ zhengmei Js in the world, we can see that there are only 6 bytes of methods for judging IE and non-ie. Its
Code As follows:
[Ctrl + A select all Note: If you need to introduce external JS
Official Website
Http://dean.edwards.name/weblog/2008/01/ie7-2/
I. References
1. solves conflicts between ie5, IE6, and IE7 and W3C standards, and is compatible with ie7.js ie8.js.
Http://apps.hi.baidu.com/share/detail/15407414
2 ie7.js solutions to IE compatibility issues
Http://www.chonggou.net/show/2824.html
3 elimi
Installation is needless to say, very simple, in Firefox plugin library to find Firebug on the OK. The following figure is the Firebug Debug window.
Firebug Art use is very common, the company art sister with very skilled oh, and for our developers, mainly with it to debug JS. Look at the official introduction to the Debug
JS XMLHTTP object IE browser and non IE browser creation method
Example: Create a XMLHTTP object and request an XML document from the server, which is displayed after the document is returned. The following are examples of IE and non-IE explained
1
JavaScript gets the IE version code:
var GIE = Getie ();
Alert (gie.version)
function Getie () {
var Rmsie =/(MSIE) ([\w.] +)/;
var ua = Navigator.userAgent.toLowerCase ();
var match = rmsie.exec (UA)
var result = {};
if (match match.length > 0) {result
= {Browser:match[1] | | "", Version:match[2] | | " 0 "}
} return result
;
}
If the compatibility mode error is compatible w
It is also about the report directory, a local htm file, tree navigation of the webpage, linking to some local doc, xls and other files.
After the task is completed, open the htm file on the local disk. The information bar is displayed for IE every time:
Google: this is the one that came out after the xp sp2 patch. I used to write my own demo page, but it also showed up.
We need to use it for customers now, so we can't keep them updated every time. W
Original reference:Https://www.cnblogs.com/liuyanxia/p/5855760.htmlSpecific code examples:Here is the return: if not IE browser return-1, return 7/8/9/10/11 corresponding to the current version of IE.ieversion ();functionieversion () {varuseragent = navigator.useragent;//get the useragent string for the browser varIsie = Useragent.indexof ("compatible") >-1 useragent.indexof ("MSIE") >-1;//determine if the browser is
How to debug dynamic js scripts in the browser (illustration): js scripts
Two days ago, I pulled the company's front-end code and found that the sources option of the developer tool did not list the js script I want to debug. Then I observed it, the script is dynamically in
Using webstrom to debug Vue. js single page program method tutorial, webstromvue. js
Preface
Debugging Vue. js single-page programs using webstrom should theoretically support all applications built with webpack
Webstrom version: 2017.1
Code: Basic single page application built using vue-cli
Modify webpack configuratio
An exampleprint strings and objects;Expandable objects to view internal conditions;Look at the definition of the console object itself;Output object condition;The file where the Utag object resides;Output object;Two Console.log Summary 1If you JS not to a state, I even teach you to debug bugs, crack some plug-ins and so on, you do not know what I am doing. My goal is only to let you know the console, let yo
:
Copy CodeThat's the way it is in chrome.
It's basically the same in Firebug.8, Console.traceThis command is used to keep track of a function's call trajectory, which is helpful if you add console.trace to the function you want to test, of course, our great IE still doesn't support it.9, Console.assertTh
100px,div (including border width): 100px;And the width of the firefox:div (including the border width): 102px,div height (including the border width): 102px;So in this compatible with IE and Firefox drag windows, in the JS and CSS to write a bit of brain, give everyone two tipsOne. Determine the browser type:var isie=document.all? True:false;I wrote a variable, if support document.all syntax so isie=true,
IntroductionRecently in a project, in the user list needs to give a sample of the individual users of unsigned samples, the blog park upload pictures using pop-up, blog Park specifically how to realize that do not know, just if you get to, think of two plug-in combination of use, In the pop-up box using the Uploadify plug-in to upload, each time will be an error is silent, and finally find a solution, here to record, is the work encountered in a summary of the bug.BugThis is the information that
Node. js is based on Google V8, and Google V8 has an Eclipse debugging plug-in that also supports node. js.
1. Install Eclipse debugger for V8
This should be known to anyone who has used Eclipse, but let's simply put it:
Select "Install New Software"
Click "Add"
Location: http://chromedevtools.googlecode.com/svn/update/dev/
Name: You like it. You can remember it easily.
Click "OK" and select the si
All the Web developers know that JS
Program Debugging is quite depressing, because the syntax of this language is more flexible first, it is a weak type of scripting language, and many errors cannot be controlled, the most painful thing is that there are no good debugging tools, and the current situation is a little better than before. There is firebug in Firefox, which is indeed a good JS debugging tool,
Js monitors IE Firefox to close, refresh, roll back, and forward events, js Firefox
Js checks whether the rollback button is executed
This is hard to do. Because the browser processing method is different. Chrome and ie will reload the
Background:Upgrade from IE8 to IE11 (and auto-update installs several IE11 patches) because of project needs, upgrade to use vs2012 to debug JS in ASP.However, it is found that the script document project in solution is not started when it is running in the project, JS cannot break the point (The Hollow circle).Resolution process:This same group of colleagues hav
Write at the beginning: In fact, I was thinking about whether to write this thing, because this thing is really not difficult, but why there are so many people ask, they ask not how to use the console, but do not know the console can do, they also know that there are console.log and other things, But they don't know why they use such a long string instead of the alert output message. There was enough alert in their eyes. OK, I admit the small spit trough, but this series I only intend to introdu
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.