要求的格式
代码块
$(‘.btn-confirm‘).on(‘tap‘,function(){
var arr={};
var name = $("input[name=‘insurance_attributes[ty_beibaoren][ty_beibaoren_name]‘]").val();
var num = $("input[name=‘insurance_attributes[ty_beibaoren][ty_beibaoren_id_number]]‘]").val();
var job = $("input[name=‘insurance_attributes[ty_beibaoren][ty_beibaoren_job]]‘]").val();
var phone = $("input[name=‘insurance_attributes[ty_beibaoren][ty_beibaoren_phone]]‘]").val();
arr[‘ty_beibaoren_name‘] = name;
arr[‘ty_beibaoren_id_number‘] = num;
arr[‘ty_beibaoren_job‘] = job;
arr[‘ty_beibaoren_phone‘] = phone;
console.log(arr)
mui(‘.mui-popover‘).popover(‘hide‘);
});