效果如下 新增一列后 1. 首先为button添加事件响应 响应函数如下图,可以看到这里新增的一列包含name, code, value三个值。每次新增时,数组customParam进行入栈操作,入栈参数为name,code,value组成的数组,计数值customBillParamLength增1 2. input框展示部分,见下图。根据customPayParamLength作为循环的上限。因循环从0开始,数组customParam在输出时要 -1,即customParam[num - 1] 小结 删除时customBillParamLength -1即可