React Native中的=>是什么运算?

2025-05-06 05:09:37
推荐回答(1个)
回答1:

这是表达式。

.then(response=>response.json())
.then(json=>this._handleResponse(json.response))

相当于

.then(function(response){response.json();})
.then(function(json){this._handleResponse(json.response);})