jshint warns on `return x=y` --- "do you mean return x==y?"
am against 2: return value of a function must make sense and match the
function's expected usage; in this case the function is expected to
perform mutations, and its return value is ignored, so it should not
`return aValue`.
`return;` is however acceptable, when used to indicate an early exit.
【 在 hgoldfish (老鱼) 的大作中提到: 】
: 2是这样的,我们一般写:
: function ($scope) {
: $scope.brand = 'lskjdfls';
: ...................
--
FROM 180.173.119.*