React开发(270):react控制传参
Posted 前端小歌谣
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了React开发(270):react控制传参相关的知识,希望对你有一定的参考价值。
const birthday, departureTime, entryTime, positionCodeList = values;
const type, employeeEntity, selectedEmployeeRow, partnerCode = this.props.employee;
const params =
...values,
birthdayLong: birthday && birthday.valueOf(),
departureTimeLong: departureTime && departureTime.valueOf(),
entryTimeLong: entryTime && entryTime.valueOf(),
superCode: employeeEntity.superCode,
salesPartnerCode: partnerCode,
;
console.log(params, 'params');
delete params.positionCodeList;
delete params.birthday;
delete params.departureTime;
delete params.entryTime;
params.positionCodeList = [positionCodeList];
以上是关于React开发(270):react控制传参的主要内容,如果未能解决你的问题,请参考以下文章