JavaScript(JS)是一种具有函数优先特性的轻量级、解释型或者说即时编译型的编程语言。虽然作为 Web 页面中的脚本语言被人所熟知,但是它也被用到了很多非浏览器环境中,例如 Node.js、Apache CouchDB、Adobe Acrobat 等。进一步说,JavaScript 是一种基于原型、多范式、单
其实全局作用域包含全局对象中的属性,包括它可能继承来的属性。 全局作用域中的其他对象则可由用户的脚本创建,或由宿主程序提供。浏览器环境中所提供的宿主对象的说明可以在这里找到:API 参考。 要了解关于 DOM 和核心 JavaScript 之间区别的更多信息,可参阅 JavaScript 技术概述。
Learn about the Document interface, including its constructor, properties, and methods, specifications and browser compatibility.
文档对象模型 API [DOM (Document Object Model) API] 允许你操作 HTML 和 CSS,创建,移除和修改 HTML,动态地应用新的样式到你的页面,等等。比如说每次你在一个页面里看到一个弹出窗口,或者显示一些新的内容,这就是 DOM 在运作。 地理定位 API [Geolocation API] 获取地理信息。这就是为什么谷歌地图可以找到你...
Object.keys() 方法会返回一个由给定对象的所有可枚举自身属性的属性名组成的数组,数组中属性名的排列顺序和使用for-in循环遍历该对象时返回的顺序一致(两者的主要区别是 for-in 还会遍历出一个对象从其原型链上继承到的可枚举属性)。 209 Object.observe() ECMAScript7, Experimental, Expérimental, JavaScript, ...
This section of the site is dedicated to the JavaScript language itself, and not the parts that are specific to Web pages or other host environments. For information about APIs specific to Web pages, please see Web APIs and DOM. The standard for JavaScript is ECMAScript. As of 2012, all ...
代码语言:javascript 代码运行次数:0 运行 AI代码解释 Ashok's joke made meLOLbig time. 结果 定义缩写 您可以与串联使用,以更正式地定义缩写,如此处所示。 HTML 代码语言:javascript 代码运行次数:0 运行 AI代码解释 HTMLis a markup language used
The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a document—such as the HTML representing a web page—in memory. Usually it refers to JavaScript, even though modeling HTML, SVG, or X
In this series I talk about different web technologies and terms that beginners need to understand to become a professional web developer. javascript bootstrap jquery express web-development database html5 css3 series semantic-ui dom-manipulation data-persistence node-js restful-api passport-js mongo...
9.作为一个DOM事件处理函数 当函数被用作事件处理函数时,它的this指向触发事件的元素(一些浏览器在使用非addEventListener的函数动态地添加监听函数时不遵守这个约定)。 //被调用时,将关联的元素变成蓝色functionbluify(e){ console.log(this=== e.currentTarget);//总是 true//当 currentTarget 和 target 是同一...