1.遍历排序 初始新增删除都调用
<form class="form">
<notempty name="data">//php写法
<input type="text" placeholder="" name="location" value="{$data[0]
['address']}" readonly>//readonly:有数据时不可修改
<else/>
<input type="text" placeholder="" name="location">
</notempty>
<div>
<label>第<span class="my_sort"></span>条:</label>
<button class="removeVar">删除</button>
</div>
<div>
<botton id="add">新增</botton>
</div>
<div>
<button id="save">保存</button>
</div>
</from>
mySort();
function mySort() {
var num = 0;
$('.my_sort').each(function () {
num