chenkefeng

Results comments of chenkefeng

I tried, and this is good! Example: ``` struct User: Mappable { var name = "" var dict = [String:Any]() init() {} init?(map: Map) { } mutating func mapping(map: Map)...

You can do it! Example ``` struct User: Mappable { var name = "" var dict = [String:Any]() var flag = false init() {} init?(map: Map) { } mutating func...

The JSON format is wrong and provides the correct JSON format

Your JSON format should be like this, right? ``` { "rows": [ { "elements": [ { "distance": { "text": "0.3 km", "value": 311 }, "duration": { "text": "1 min", "value":...

I was writing the code, I tried it, and I was successful. I don't know if you need it Ex: ``` import ObjectMapper class DistanceMatrixForGasModel: Mappable { var status: String?...

> @yuquanwang 好嘞~ 普通request 也有需要取消的需求呀

> @sfuser001 怎么解决? 这样,随便写一个文件,例如:promise.js 内容如下: ` Promise.prototype.finally = function (callback) { let P = this.constructor; return this.then( value => P.resolve(callback && callback()).then(() => value), reason => P.resolve(callback && callback()).then(() =>...

额 这个就是我 我另外一个账号忘记了😓

> @chenkefeng 没有用ts,不知道能不能通过babel配置来实现。 不用ts上边的方法也行。直接引入 promise.js就好了 内容如下: `Promise.prototype.finally = function (callback) { let P = this.constructor; return this.then( value => P.resolve(callback && callback()).then(() => value), reason => P.resolve(callback && callback()).then(() =>...