IE8 新增的Javascript 开发接口说明

IE8 新增的Javascript 对象 (Object)

Attr Constructor

Defines the properties and methods inherited by objects in the Attr Constructor prototype chain.

BehaviorUrnsCollection Constructor

Defines the properties and methods inherited by objects in the BehaviorUrnsCollection Constructor prototype chain.

BookmarkCollection Constructor

Defines the properties and methods inherited by objects in the BookmarkCollection Constructor prototype chain.

CompatibleInfo Constructor

Defines the properties and methods inherited by objects in the CompatibleInfo Constructor prototype chain.

CompatibleInfoCollection Constructor

Defines the properties and methods inherited by objects in the CompatibleInfoCollection Constructor prototype chain.

ControlRangeCollection Constructor

Defines the properties and methods inherited by objects in the ControlRangeCollection Constructor prototype chain.

CSSCurrentStyleDeclaration Constructor

Defines the properties and methods inherited by objects in the CSSCurrentStyleDeclaration Constructor prototype chain.

CSSRuleList Constructor

Defines the properties and methods inherited by objects in the CSSRuleList Constructor prototype chain.

CSSRuleStyleDeclaration Constructor

Defines the properties and methods inherited by objects in the CSSRuleStyleDeclaration Constructor prototype chain.

CSSStyleDeclaration Constructor

Defines the properties and methods inherited by objects in the CSSStyleDeclaration Constructor prototype chain.

CSSStyleRule Constructor

Defines the properties and methods inherited by objects in the CSSStyleRule Constructor prototype chain.

CSSStyleSheet Constructor

Defines the properties and methods inherited by objects in the CSSStyleSheet Constructor prototype chain.

DataTransfer Constructor

Defines the properties and methods inherited by objects in the DataTransfer Constructor prototype chain.

DOMImplementation Constructor

Defines the properties and methods inherited by objects in the DOMImplementation Constructor prototype chain.

Element Constructor

Defines the properties and methods inherited by objects in the Element Constructor prototype chain.

Event Constructor

Defines the properties and methods inherited by objects in the Event Constructor prototype chain.

History Constructor

Defines the properties and methods inherited by objects in the History Constructor prototype chain.

HTCBehavior Constructor

Defines the properties and methods inherited by objects in the HTCBehavior Constructor prototype chain.

HTCElementBehaviorDefaults Constructor

Defines the properties and methods inherited by objects in the HTCElementBehaviorDefaults Constructor prototype chain.

HTMLAnchorElement Constructor

Defines the properties and methods inherited by objects in the HTMLAnchorElement Constructor prototype chain.

HTMLAreaElement Constructor

Defines the properties and methods inherited by objects in the HTMLAreaElement Constructor prototype chain.

HTMLAreasCollection Constructor

Defines the properties and methods inherited by objects in the HTMLAreasCollection Constructor prototype chain.

HTMLBaseElement Constructor

Defines the properties and methods inherited by objects in the HTMLBaseElement Constructor prototype chain.

HTMLBaseFontElement Constructor

Defines the properties and methods inherited by objects in the HTMLBaseFontElement Constructor prototype chain.

HTMLBGSoundElement Constructor

Defines the properties and methods inherited by objects in the HTMLBGSoundElement Constructor prototype chain.

HTMLBlockElement Constructor

Defines the properties and methods inherited by objects in the HTMLBlockElement Constructor prototype chain.

HTMLBodyElement Constructor

Defines the properties and methods inherited by objects in the HTMLBodyElement Constructor prototype chain.

HTMLBRElement Constructor

Defines the properties and methods inherited by objects in the HTMLBRElement Constructor prototype chain.

HTMLButtonElement Constructor

Defines the properties and methods inherited by objects in the HTMLButtonElement Constructor prototype chain.

HTMLCollection Constructor

Defines the properties and methods inherited by objects in the HTMLCollection Constructor prototype chain.

HTMLCommentElement Constructor

Defines the properties and methods inherited by objects in the HTMLCommentElement Constructor prototype chain.

HTMLDDElement Constructor

Defines the properties and methods inherited by objects in the HTMLDDElement Constructor prototype chain.

HTMLDivElement Constructor

Defines the properties and methods inherited by objects in the HTMLDivElement Constructor prototype chain.

HTMLDListElement Constructor

Defines the properties and methods inherited by objects in the HTMLDListElement Constructor prototype chain.

HTMLDocument Constructor

Defines the properties and methods inherited by objects in the HTMLDocument Constructor prototype chain.

DocumentCompatibleInfo

Provides information about the compatibity mode specified by the Web page. If the Web page specifies multiple compatibility modes, they can be retrieved using documentCompatibleInfoCollection.

HTMLDTElement Constructor

Defines the properties and methods inherited by objects in the HTMLDTElement Constructor prototype chain.

HTMLEmbedElement Constructor

Defines the properties and methods inherited by objects in the HTMLEmbedElement Constructor prototype chain.

HTMLFieldSetElement Constructor

Defines the properties and methods inherited by objects in the HTMLFieldSetElement Constructor prototype chain.

HTMLFontElement Constructor

Defines the properties and methods inherited by objects in the HTMLFontElement Constructor prototype chain.

HTMLFormElement Constructor

Defines the properties and methods inherited by objects in the HTMLFormElement Constructor prototype chain.

HTMLFrameElement Constructor

Defines the properties and methods inherited by objects in the HTMLFrameElement Constructor prototype chain.

HTMLFrameSetElement Constructor

Defines the properties and methods inherited by objects in the HTMLFrameSetElement Constructor prototype chain.

HTMLGenericElement Constructor

Defines the properties and methods inherited by objects in the HTMLGenericElement Constructor prototype chain.

HTMLHeadElement Constructor

Defines the properties and methods inherited by objects in the HTMLHeadElement Constructor prototype chain.

HTMLHeadingElement Constructor

Defines the properties and methods inherited by objects in the HTMLHeadingElement Constructor prototype chain.

HTMLHRElement Constructor

Defines the properties and methods inherited by objects in the HTMLHRElement Constructor prototype chain.

HTMLHtmlElement Constructor

Defines the properties and methods inherited by objects in the HTMLHtmlElement Constructor prototype chain.

HTMLIFrameElement Constructor

Defines the properties and methods inherited by objects in the HTMLIFrameElement Constructor prototype chain.

HTMLImageElement Constructor

Defines the properties and methods inherited by objects in the HTMLImageElement Constructor prototype chain.

HTMLInputElement Constructor

Defines the properties and methods inherited by objects in the HTMLInputElement Constructor prototype chain.

HTMLIsIndexElement Constructor

Defines the properties and methods inherited by objects in the HTMLIsIndexElement Constructor prototype chain.

HTMLLabelElement Constructor

Defines the properties and methods inherited by objects in the HTMLLabelElement Constructor prototype chain.

HTMLLegendElement Constructor

Defines the properties and methods inherited by objects in the HTMLLegendElement Constructor prototype chain.

HTMLLIElement Constructor

Defines the properties and methods inherited by objects in the HTMLLIElement Constructor prototype chain.

HTMLLinkElement Constructor

Defines the properties and methods inherited by objects in the HTMLLinkElement Constructor prototype chain.

HTMLMapElement Constructor

Defines the properties and methods inherited by objects in the HTMLMapElement Constructor prototype chain.

HTMLMarqueeElement Constructor

Defines the properties and methods inherited by objects in the HTMLMarqueeElement Constructor prototype chain.

HTMLMetaElement Constructor

Defines the properties and methods inherited by objects in the HTMLMetaElement Constructor prototype chain.

HTMLModelessDialog Constructor

Defines the properties and methods inherited by objects in the HTMLModelessDialog Constructor prototype chain.

HTMLNamespaceInfo Constructor

Defines the properties and methods inherited by objects in the HTMLNamespaceInfo Constructor prototype chain.

HTMLNamespaceInfoCollection Constructor

Defines the properties and methods inherited by objects in the HTMLNamespaceInfoCollection Constructor prototype chain.

HTMLNextIdElement Constructor

Defines the properties and methods inherited by objects in the HTMLNextIdElement Constructor prototype chain.

HTMLObjectElement Constructor

Defines the properties and methods inherited by objects in the HTMLObjectElement Constructor prototype chain.

HTMLOListElement Constructor

Defines the properties and methods inherited by objects in the HTMLOListElement Constructor prototype chain.

HTMLOptionElement Constructor

Defines the properties and methods inherited by objects in the HTMLOptionElement Constructor prototype chain.

HTMLParagraphElement Constructor

Defines the properties and methods inherited by objects in the HTMLParagraphElement Constructor prototype chain.

HTMLParamElement Constructor

Defines the properties and methods inherited by objects in the HTMLParamElement Constructor prototype chain.

HTMLPhraseElement Constructor

Defines the properties and methods inherited by objects in the HTMLPhraseElement Constructor prototype chain.

HTMLPluginsCollection Constructor

Defines the properties and methods inherited by objects in the HTMLPluginsCollection Constructor prototype chain.

HTMLPopup Constructor

Defines the properties and methods inherited by objects in the HTMLPopup Constructor prototype chain.

HTMLScriptElement Constructor

Defines the properties and methods inherited by objects in the HTMLScriptElement Constructor prototype chain.

HTMLSelectElement Constructor

Defines the properties and methods inherited by objects in the HTMLSelectElement Constructor prototype chain.

HTMLSpanElement Constructor

Defines the properties and methods inherited by objects in the HTMLSpanElement Constructor prototype chain.

Storage

Represents the list of key/value pairs that have been assigned to a single storage area.

HTMLStyleElement Constructor

Defines the properties and methods inherited by objects in the HTMLStyleElement Constructor prototype chain.

HTMLTableCaptionElement Constructor

Defines the properties and methods inherited by objects in the HTMLTableCaptionElement Constructor prototype chain.

HTMLTableCellElement Constructor

Defines the properties and methods inherited by objects in the HTMLTableCellElement Constructor prototype chain.

HTMLTableColElement Constructor

Defines the properties and methods inherited by objects in the HTMLTableColElement Constructor prototype chain.

HTMLTableElement Constructor

Defines the properties and methods inherited by objects in the HTMLTableElement Constructor prototype chain.

HTMLTableRowElement Constructor

Defines the properties and methods inherited by objects in the HTMLTableRowElement Constructor prototype chain.

HTMLTableSectionElement Constructor

Defines the properties and methods inherited by objects in the HTMLTableSectionElement Constructor prototype chain.

HTMLTextAreaElement Constructor

Defines the properties and methods inherited by objects in the HTMLTextAreaElement Constructor prototype chain.

HTMLTitleElement Constructor

Defines the properties and methods inherited by objects in the HTMLTitleElement Constructor prototype chain.

HTMLUListElement Constructor

Defines the properties and methods inherited by objects in the HTMLUListElement Constructor prototype chain.

Location Constructor

Defines the properties and methods inherited by objects in the Location Constructor prototype chain.

NamedNodeMap Constructor

Defines the properties and methods inherited by objects in the NamedNodeMap Constructor prototype chain.

Navigator Constructor

Defines the properties and methods inherited by objects in the Navigator Constructor prototype chain.

NodeList Constructor

Defines the properties and methods inherited by objects in the NodeList Constructor prototype chain.

Screen Constructor

Defines the properties and methods inherited by objects in the Screen Constructor prototype chain.

Selection Constructor

Defines the properties and methods inherited by objects in the Selection Constructor prototype chain.

StaticNodeList Constructor

Defines the properties and methods inherited by objects in the StaticNodeList Constructor prototype chain.

Storage Constructor

Defines the properties and methods inherited by objects in the Storage Constructor prototype chain.

StyleSheetList Constructor

Defines the properties and methods inherited by objects in the StyleSheetList Constructor prototype chain.

StyleSheetPage Constructor

Defines the properties and methods inherited by objects in the StyleSheetPage Constructor prototype chain.

StyleSheetPageList Constructor

Defines the properties and methods inherited by objects in the StyleSheetPageList Constructor prototype chain.

Text Constructor

Defines the properties and methods inherited by objects in the Text Constructor prototype chain.

TextRange Constructor

Defines the properties and methods inherited by objects in the TextRange Constructor prototype chain.

TextRangeCollection Constructor

Defines the properties and methods inherited by objects in the TextRangeCollection Constructor prototype chain.

TextRectangle Constructor

Defines the properties and methods inherited by objects in the TextRectangle Constructor prototype chain.

TextRectangleList Constructor

Defines the properties and methods inherited by objects in the TextRectangleList Constructor prototype chain.

Window Constructor

Defines the properties and methods inherited by objects in the Window Constructor prototype chain.

XDomainRequest Constructor

Defines the properties and methods inherited by objects in the XDomainRequest Constructor prototype chain.

XDomainRequest

Represents a cross-domain Asynchronous JavaScript and XML (AJAX) request.

XMLHttpRequest Constructor

Defines the properties and methods inherited by objects in the XMLHttpRequest Constructor prototype chain.

IE8 新增的 Javascript 函数以及属性:

abort Method

The abort method terminates a pending send.

AddService Method

User initiated action to add a service.

AddToFavoritesBar Method

Adds a URL to the Favorites Bar.

ariaActivedescendant Property

Sets or retrieves the currently active child element.

ariaBusy Property

Sets or retrieves a value indicating whether a live region is finished updating.

ariaChecked Property

Sets or retrieves the checked state of this element.

ariaControls Property

Sets or retrieves the list of elements that are controlled by the current element.

ariaDescribedby Property

Sets or retrieves a list of elements that describe the current object.

ariaDisabled Property

Sets or retrieves the disabled state of this element.

ariaExpanded Property

Sets or retrieves the expanded state of this element.

ariaFlowto Property

Sets or retrieves the recommended reading order of content.

ariaHaspopup Property

Sets or retrieves a value indicating whether this element may display a pop-up window.

ariaHidden Property

Sets or retrieves the hidden state of this element.

ariaInvalid Property

Sets or retrieves the error state of this element.

ariaLabelledby Property

Sets or retrieves a list of elements that provide a label for the current object.

ariaLevel Property

Sets or retrieves the level of this element.

ariaLive Property

Sets or retrieves how assistive technology should announce updates to live regions.

ariaMultiselect Property

Sets or retrieves the multiple-selection state of this element.

ariaOwns Property

Sets or retrieves a list of child objects, including elements that are not direct descendants of the current object.

ariaPosinset Property

Sets or retrieves the current position of an item within a set.

ariaPressed Property

Sets or retrieves the pressed state of a button that can be toggled.

ariaReadonly Property

Sets or retrieves the read-only state of this element.

ariaRelevant Property

Sets or retrieves which changes to a live region are relevant.

ariaRequired Property

Sets or retrieves the form-completion requirement of this element.

ariaSecret Property

Sets or retrieves the secret state of this element.

ariaSelected Property

Sets or retrieves the selection state of this element.

ariaSetsize Property

Sets or retrieves the set size of this element.

ariaValuemax Property

Sets or retrieves the maximum value that a user can provide.

ariaValuemin Property

Sets or retrieves the minimum value that a user can provide.

ariaValuenow Property

Sets or retrieves the current value of the element.

attributes Property

Retrieves a collection of attributes of the object.

className Property

Elements with a class name of hslice are treated as a Web Slice. For more information, see Subscribing to Content with Web Slices.

clear Method

Removes all key/value pairs from the DOM Storage area.

compatible Property

Retrieves the collection of user agents and versions declared in the X-UA-Compatible

constructor Property

Returns a references to the constructor of an object.

ContentDiscoveryReset Method

Resets the list of feeds, search providers, and Web Slices associated with the page.

contentDocument Property

Retrieves the document object of the page or frame.

contentType Property

Gets or sets the Content-Type property in the HTML request or response header.

data Property

Sets or retrieves the body of the onmessage request.

defineGetter Method

Allows developers to create new or override existing Document Object Model (DOM) properties and functions using functionality implemented by a custom Microsoft JScript function. The custom function is used to return a value from a property or function.

__defineSetter__ Method

Allows developers to create new or override existing DOM properties and functions using functionality implemented by a custom JScript function. The custom function is used to set the value of a property or a function.

documentMode Property

Retrieves the document compatibility mode.

font Property

This method gets or sets the font properties for the header and footer.

getItem Method

Retrieves the current value associated with the DOM Storage key.

hasAttribute Method

Determines whether an attribute with the specified name exists.

isAlternate Property

Retrieves a value that indicates whether the IHTMLStyleSheet3 object is an alternative style sheet.

isPrefAlternate Property

Retrieves a value that indicates whether the IHTMLStyleSheet3 object is the preferred style sheet.

IsServiceInstalled Method

Check if a service is already installed.

item Method

Retrieves an object from a documentCompatibleInfoCollection collection.

key Method

Retrieves the key at the specified index in the collection.

length Property

Retrieves the length of the key/value list.

localStorage Property

Retrieves a list of DOM Storage areas.

lookupGetter Method
lookupSetter Method
maxConnectionsPerServer Property

Retrieves the maximum number of HTTP 1.0 connections to a Web server.

msWriteProfilerMark Method

Writes a profiling event.

open Method

Creates a connection with a domain's server.

origin Property

Sets or retrieves the scheme, hostname, and port of the document that fired the onmessage event.

ownerElement Property

Retrieves the element that owns the attribute.

postMessage Method

Sends a cross-document message.

querySelector Method

Retrieves the first DOM element node from descendants of the starting element node that match any selector within the supplied selector string.

querySelectorAll Method

Retrieves all DOM element nodes from descendants of the starting element node that match any selector within the supplied selector strings.

rel Property

Values of bookmark, entry-content, and feedurl have special meaning inside a Web Slice. For more information, see Subscribing to Content with Web Slices.

remainingSpace Property

Retrieves the remaining memory space, in bytes, for the storage object.

removeItem Method

Deletes a key/value pair from the DOM Storage collection.

responseText Property

Contains the body of the response returned by the server.

role Property

Sets or retrieves the role for this element.

send Method

Transmits a data string to the server for processing.

sessionStorage Property

Retrieves the DOM Storage area for the session.

setItem Method

Sets a key/value pair.

source Property

Retrieves the source window object of the onmessage event.

systemXDPI Property

Retrieves the number of horizontal dots per inch (dpi) of display resolution at normal zoom level.

systemYDPI Property

Retrieves the number of vertical dpi of display resolution at normal zoom level.

timeout Property

Gets or sets the value of the timeout property.

timeout Property

Gets or sets the time-out value.

toStaticHTML Method

Removes dynamic HTML elements and attributes from an HTML fragment.

updateSettings Method

Allows updating the print settings for the page.

url Property

Sets or retrieves the fully qualified URL of the document that fired the event.

url Property

Sets or retrieves the URL property that will be loaded after the specified time has elapsed.

userAgent Property

Retrieves the User Agent.

version Property

Retrieves the version vector as a string.

XDomainRequest Property

Instantiates the XDomainRequest object for the window.

IE8 新增的Javascript事件

onerror

Raised when there is an error that prevents the completion of the cross-domain request.

onhashchange

Raised upon changes to a fragment

onload

Raised when the object has been completely received from the server.

onmessage

Fires when the user sends a cross-document message with postMessage.

onoffline

Raised when Internet Explorer is working offline.

ononline

Raised when Internet Explorer is working online.

onprogress

Raised when the browser starts receiving data from the server.

onstorage

Fires when a DOM Storage area is updated.

onstoragecommit

Fires when a local DOM Storage area is written to disk.

ontimeout

Raised when there is an error that prevents the completion of the request.

IE8 新增的 CSS 属性

:after Pseudo-class

Defines generated content that appears after an element.

:before Pseudo-class

Defines generated content that appears before an element.

:focus Pseudo-class

Sets the style of an element when it gains focus.

:lang(C) Pseudo-class

In a document, selects the elements that are in a given language.

borderSpacing Property

Sets or retrieves the distance between the borders of adjoining cells in a table.

boxSizing Property

Sets or retrieves the box model to use for object sizing.

captionSide Property

Sets or retrieves where the caption of a table is located.

content Property

Sets or retrieves generated content to insert before or after an element.

counterIncrement Property

Sets or retrieves a list of counters to increment.

counterReset Property

Sets or retrieves a list of counters to create or reset to zero.

display Property

The display property now supports the full range of table layout values from the W3C Cascading Style Sheets Level 2.1 Specification  and ruby styles from the CSS3 Ruby Module .

emptyCells Property

Determines whether to show or hide a cell without content.

msBlockProgression Property

Sets or retrieves the block progression and layout orientation.

orphans Property

Sets or retrieves the minimum number of lines of a paragraph that must appear at the bottom of a page.

outline Property

Sets or retrieves the color, style, and width of the outline frame.

outlineColor Property

Sets or retrieves the color of the outline frame.

outlineStyle Property

Sets or retrieves the style of the outline frame.

outlineWidth Property

Sets or retrieves the width of the outline frame.

pageBreakInside Property

Sets or retrieves a string indicating whether a page break is allowed to occur inside the object.

quotes Property

Sets or retrieves the pairs of strings to be used as quotes in generated content.

widows Property

Sets or retrieves the minimum number of lines of a paragraph that must appear at the top of a page.

后续更新,请参考:http://msdn.microsoft.com/en-us/library/cc304071(VS.85).aspx

(0)

相关推荐

  • IE8 新增的Javascript 开发接口说明

    IE8 新增的Javascript 对象 (Object) Attr Constructor Defines the properties and methods inherited by objects in the Attr Constructor prototype chain. BehaviorUrnsCollection Constructor Defines the properties and methods inherited by objects in the Behavior

  • 利用Javascript开发一个二维周视图日历

    前言 本文给大家介绍了Javascript开发二维周视图日历的相关内容,即之前实现了一个月视图日历,我们今天来实现一个二维周视图的日历. 以下进行分析其中的关键部分. 结构准备 不同之处在于其在日历的基础上还有一个分类轴,用于展示不同的类目,主要用于一周内的日程安排.会议安排等. 二维则和之前单独的有所不同,二维日历再切换日期时不用全部重新渲染,分类是不用变的,仅仅改变显示的日期即可. 而且由于是二维的,插入的内容必定是同时属于一个分类和一个时间段的,内容肯定是可以跨越时间(即日期轴)的,因此不

  • JavaScript fetch接口案例解析

    在 AJAX 时代,进行 API 等网络请求都是通过 XMLHttpRequest 或者封装后的框架进行网络请求. 现在产生的 fetch 框架简直就是为了提供更加强大.高效的网络请求而生,虽然在目前会有一点浏览器兼容的问题,但是当我们进行 Hybrid App 开发的时候,如我之前介绍的 Ionic 和 React Native,都可以使用 fetch 进行完美的网络请求. 如果看网上的fetch教程,会首先对比XMLHttpRequest和fetch的优劣,然后引出一堆看了很快会忘记的内容(

  • javascript 开发之网页兼容各种浏览器

    javascript 开发之网页兼容各种浏览器 前言: 关于CSS对各个浏览器兼容已经是老生常谈的问题了, 网络上的教程遍地都是.以下内容没有太多新颖, 纯属个人总结, 希望能对初学者有一定的帮助. 一.CSS HACK 以下两种方法几乎能解决现今所有HACK. 1, !important 随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.) <style> #wrapper { width: 100px!imp

  • JavaScript 开发工具webstrom使用指南

    看到网上一篇介绍webstrom的文章,觉得功能确实强大,也知道为什么阿里巴巴的前端传到github上的文件为啥都有一个 .idea 文件,(传说淘宝内部推荐写js用webstrom) 我们可以理解 IDE 就是集成了很多你想要的功能,或者你不想要的功能.换句话说就是装了很多插件的 editor ,所以到目前为止,我还觉得没必要给它装什么插件. 那么接下来开始介绍webstrom的特色功能: WebStorm 是 JetBrains 推出的一款商业的 JavaScript 开发工具 任何一个编辑

  • 分享9个最好用的JavaScript开发工具和代码编辑器

    Web设计和开发是现今越来越流行的职业方向之一.工欲善其事,必先利其器,如果你想在这个领域出类拔萃,那么你就必须具备一些优秀的技能,例如能操作不同的平台.IDE和其他各种各样的工具. 谈到平台和IDE,现在已经不是以前那个掌握一个IDE就能"一招鲜吃遍天"的时代了.激烈的竞争以及蔓延到现在的集成开发环境.基于IDE是用于创建和部署应用程序的强大客户端应用程序,下面我们要分享的就是对于很多网页设计师和开发人员而言,最好的JavaScript 开发工具. 若有不同见解,敬请不吝赐教. 1)

  • JavaScript开发时的五个注意事项

    只在<form>元素上使用submit事件 如果要在form中绑定事件处理程序时,应该只在<form>元素上绑定submit事件,而不是给提交按钮绑定click事件. March:这个方式固然很好,但是,公司开发时使用了Web Flow,一个页面就一个大form,而里面可能有若干个提交按钮,所以不得不把部分事件处理程序绑定在了提交按钮的click事件上. 可点击的都应该是链接 不要给除锚元素(<a>)以外的元素绑定click事件.这一点对于键盘用户很重要,因为他们在仅通

  • 分享经典的JavaScript开发技巧

    JavaScript开发经典技巧分享给大家: 1.首次为变量赋值时务必使用var关键字 变量没有声明而直接赋值得话,默认会作为一个新的全局变量,要尽量避免使用全局变量. 2.使用===取代== ==和!=操作符会在需要的情况下自动转换数据类型.但===和!==不会,它们会同时比较值和数据类型,这也使得它们要比==和!=快. [10] === 10    // is false [10]  == 10    // is true '10' == 10     // is true '10' ===

  • javascript 开发之百度地图使用到的js函数整理

     javascript 开发之百度地图使用到的js函数整理 接项目用到的地图,客户要求用百度地图,没办法只好用百度地图,这里总结一下,写的一些函数,注释比较详细! //创建和初始化地图函数: function initMap(){ createMap();//创建地图 setMapEvent();//设置地图事件 addMapControl();//向地图添加控件 addMarker();//向地图中添加marker } //创建地图函数: function createMap(){ var m

  • 使用JavaScript开发跨平台的桌面应用详解

    任何可以使用JavaScript来编写的应用,最终会由JavaScript编写.--Atwood定律 Atwood's Law是Jeff Atwood在2007年提出的:"any application that can be written in JavaScript, will eventually be written in JavaScript.".据说,这只是当时开的一个玩笑.不过,这个玩笑似乎渐渐变成了现实.从各种华丽的网页框架,到功能强大的库,到了现在的机器学习,服务器开

随机推荐