Comments (3)
请问这个说法的出处在哪里?以下为括号算符的说明:
http://www.ecma-international.org/ecma-262/5.1/#sec-11.1.6
返回最后一个值则是逗号算符的功能,与括号无关,除非它在参数列表中。
from jstutorial.
这个iss提的完全没有水准,这些问题纯粹是优先级的问题,并且我认为在编程中应该避免这种一眼看不出来编程意向的方式,使用规范的方式。使用 var a = ( a1++, b1++ ) ,看起来真的很丑陋。另外加上括号是为了让逗号运算符的起作用优先于 赋值运算符,所以才加上括号这个优先级最高的符号的。
from jstutorial.
圆括号没有匿名函数的作用。
from jstutorial.
Related Issues (20)
- jstutorial/bom/window.md 中有个错误 HOT 1
- Array.prototype.splice.call() 并不能把对象转换为含有元素的数组 HOT 1
- storage事件问题 HOT 1
- 同源政策一节多了一个字符 HOT 1
- history对象 HOT 2
- 关于 phantmjs 抓取网页报变量未找到 HOT 1
- 正则表达式部分的一个小错误 HOT 2
- 想咨询一个问题 HOT 1
- contentEditable is readable HOT 4
- 老师,你好,网页版的在手机上排版有点问题 HOT 1
- Element对象这篇文章中offsetHeight描述有误 HOT 1
- Element.getClientRects() 关于行内描述问题 HOT 1
- 关于事件模型中Event.detail中代码示例问题 HOT 1
- 关于KeyboardEvent中代码示例问题 HOT 1
- JavaScript标准参考教程中dom模型概述有一段话描述是不是有问题. HOT 3
- commonJS规范 第 5节 模块的加载机制 描述有误 HOT 1
- prototype 对象章节 HOT 1
- 错字
- webRTC的一个小问题 HOT 1
- 是 req.params.id 还是 req.params.who HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jstutorial.