场景:前端选中多选框数据,向后台提交,selectionList中数据一直保留
失败方法:
this.xxxxSelectionList.length = [] // 无法清除数据,下次提交时数据依旧会保留
解决方法:
this.xxxxSelectionList.length = 0
场景:前端选中多选框数据,向后台提交,selectionList中数据一直保留
失败方法:
this.xxxxSelectionList.length = [] // 无法清除数据,下次提交时数据依旧会保留
解决方法:
this.xxxxSelectionList.length = 0