傻逼错误

push后返回不是结果数组

exports[NAME] = (...params) => data_reducer.apply(this, params.push(NAME))

会报错误

CreateListFromArrayLike called on non-object

蛋疼了半天...

因为apply的第二个参数要是数组/类数组,而push后是返回结果数组的长度的.这个坑踩了好几遍了.

© 404mzk all right reserved,powered by Gitbookhttp://blog.404mzk.com 该文件修订时间: 2017-03-09 12:51:57

results matching ""

    No results matching ""