`
withyou
  • 浏览: 466002 次
社区版块
存档分类
最新评论

[翻译] "this" of JavaScript

阅读更多
     摘要:this是JavaScript中功能最强大的关键字之一。不幸的是,如果你不知道它具体怎么工作,你将很难正确使用它。原文的题目是《The this keyword》。
翻译不恰当的地方请大家指出。  阅读全文

Flyingis 2006-09-15 15:02 发表评论
分享到:
评论

相关推荐

    Semantics of Asynchronous JavaScript

    This paper presents the rst comprehensive formalization of the Node.js asynchronous execution model and de nes a high-level notion of async-contexts to formalize fundamental relationships between ...

    JavaScript圣经第六版-英文版

    Updated to include the latest coverage of JavaScript, including howit fits into current Web browsers and applications as well as an exploration of its interaction with XML data in Ajax - This mammoth ...

    编写可维护面向对象的JavaScript代码[翻译]

    console.log(this.name + " is a " + this.title + " with a salary of " + this.salary); }; var employee = new Employee('Alice', 'Developer', '70000'); employee.displayEmployeeInfo(); ``` 2. 使用ES6...

    javascript基础教程 第8版 源代码.

    "陈建* 柳靖 翻译"说明了中文版是由这两位翻译家完成的,确保了中文读者可以理解内容。"只有书中代码部分"意味着这个压缩包中不含文字解释或理论部分,只有实际的编程代码,可能需要配合书籍正文阅读以获取完整理解...

    外文翻译 stus MVC

    This stateless behavior made it difficult for the model to notify the view of changes. On the Web, the browser has to re-query the server to discover modification to the state of the application. ...

    Getting to Know Vue js

    Getting started with a new Single Page Application (SPA) JavaScript framework can be an overwhelming task, but Vue.js makes this daunting task simple and easy to learn, allowing you to start ...

    Node.js Design Patterns Second Edition[July 2016]

    Across this chapter we learn the basic principles of Universal JavaScript by building a simple web application with React, Webpack, and Babel. Chapter 9, Advanced Asynchronous Recipes, takes a ...

    translator-[removed]算盘javascript翻译器

    算盘翻译器-javascript目录去做写这个自述文件。 使所有类名都是绝对的,因此不需要包含。版权 Copyright 2011 Geert MuldersLicensed under the Apache License, Version 2.0 (the "License");you may not use this...

    JS 函数式编程指南

    This is the Simplified Chinese translation of mostly-adequate-guide, thank Professor Franklin Risby for his great work! 关于本书 这本书的主题是函数范式(functional paradigm),我们将使用 JavaScript ...

    highchartsJS插件(有源码)

    Highcharts是一款广泛应用于Web开发的数据可视化插件,它允许开发者用JavaScript轻松创建各种高质量的图表,包括折线图、柱状图、饼图等。在SVG(可缩放矢量图形)和jQuery的支持下,Highcharts能实现动态数据呈现,...

    Head First HTML5 Programming

    - **Canvas元素**:讲解`<canvas>`标签的基本用法及如何利用JavaScript进行绘图操作,实现动态图像和游戏开发等功能。 - **SVG**:探讨可缩放矢量图形(SVG)的基础知识及其在Web开发中的应用。 ##### 3. Web存储与...

    php外文翻译.docx

    8 Echo "<p>This is a test of PHP.</p>"; 9?> 10 11 ``` 如我在之前的文中所承认,这只是一个相当无趣的PHP脚本示例。实际上,这个脚本并没有做任何普通HTML页面不能做到的事情。虽然我给出了一个显示当前服务器...

    pig-latin-javascript

    猪拉丁翻译 使用Java的行为驱动开发练习,2015年9月17日 史蒂芬妮·加西亚(Stephany Garcia) 描述 This is a Pig Latin Translator that uses the following rules: * For words that start with a vowel, add "ay...

    Ecma-262 edition 6(ECMAScript® 2015 Language Specification)

    3. 箭头函数(Arrow Functions):提供了一种更简洁的函数书写方式,它自动绑定this值,不会创建自己的this,这对事件处理器和回调函数特别有用。 4. 默认参数(Default Parameters):允许在函数定义中给参数设置...

    吉布斯采样matlab代码-GSW-JS:JavaScript中的GibbsSeaWater(GSW)海洋学工具箱

    this file. index.html - the check javascript functions library. teos.css - A few styles used /js/TEOS10_gsw_oceanographic_toolbox.js - the GSW library except gsw_saar /js/TEOS10_gsw_...

    bing-translate:用于 node.js 的 Bing 翻译模块

    translate ( 'This hotel is located close to the centre of Paris.' , 'en' , 'ro' , function ( err , res ) { console . log ( err , res ) ; } ) ; 语言列表参考 请参阅以获取 BING 支持的语言的

    XML轻松学习手册--XML肯定是未来的发展趋势,不论是网页设计师还是网络程序员,都应该及时学习和了解

    例如:当一个title元素"out of stock",将被用红色显示。 4.DOM则为脚本和对象的交流提供一个公共平台,并将结果显示在浏览器窗口。 如果任何一个部分发生错误,都不会得到正确结果。 好了,看到这里,我们已经...

    EhTagTranslator:将e绅士页面TAG换成中文,最全数据库

    This is a project for adult website, and the content of this item may include "sexual expression" and "restricted images" show.View at your own risk. 使用方法 已经迫不及待要来一发了吗?请查看:play_...

    shadowlog_cht:Shadowlog.com的中文翻译,作为Firefox插件

    shadowlog.com的中文翻译。 安装 对于FireFox 对于Chrome 许可证(GPLv3) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...

    深入浅出ES6(Alin标签).pdf

    首先,ES6带来了箭头函数,这是一种更简洁的函数书写方式,它解决了this上下文的坑点,使得函数的书写更加简洁和符合直觉。ES6中的Promise规范,借鉴自其他编程语言,提供了一种更加优雅的处理异步编程的方案。它...

Global site tag (gtag.js) - Google Analytics