- 主题:js语法问题
assignment expressions return the right-hand value
you can find that in ES5 standard, I do not remember exactly which page
【 在 ename (ename) 的大作中提到: 】
: function b() {
: this.name = 20;
: };
: ...................
--
FROM 180.173.119.*
a shang mian de kan zhe jian zhi fan zao...
ES5 11.13.1 Simple Assignment (=)
The production AssignmentExpression : LeftHandSideExpression = AssignmentExpression is evaluated as follows:
1. Let lref be the result of evaluating LeftHandSideExpression.
2. Let rref be the result of evaluating AssignmentExpression.
3. Let rval be GetValue(rref).
...
6. Return rval.
Simple assignments ALWAYS return the right hand!
(keep a copy of ES standard on your desk, it WILL help you)
【 在 XeCycle (据说是小 X) 的大作中提到: 】
: assignment expressions return the right-hand value
: you can find that in ES5 standard, I do not remember exactly which page
--
FROM 180.173.119.*
yue deng yu mei zhuang
【 在 withinsea (在这个大喜的日子里,我们感到万分悲痛) 的大作中提到: 】
: 輸入法壞了?
--
FROM 180.173.119.*