let client = form.client.id; let cli = parseInt(client); this.form.client = isNaN(cli) ? form.client.id : parseInt(client);
javascript 判断数字和字符串的转换
最新推荐文章于 2023-01-13 15:38:44 发布
let client = form.client.id; let cli = parseInt(client); this.form.client = isNaN(cli) ? form.client.id : parseInt(client);