listParam.keyword的疑问
来源:8-5 商品列表的开发(4)

ywang04
2018-04-18
if (this.state.listType === 'search') { listParam.searchType = this.state.searchType listParam.keyword = this.state.searchKeyword }
这块老师最先用的是listParam.searchKeyword 后来突然改成keyword 说是后端字段是这么写的。我有翻看后端接口文档关于"/manage/product/search.do" 这块, 并没有找到keyword字段呀?不清楚是怎么回事 希望老师能解答下。谢谢
写回答
1回答
-
Rosen
2018-04-19
keyword是一个通用的值,传productId或者productName时,keyword就是它的值,可以看下service里赋值那块怎么操作的
022018-07-01
相似问题