标签:var [] sea str device public ade class 数组
//保存区域选择的设备 $scope.saveDevice = function(){ var device = []; $("input[type=‘checkbox‘]:checked").each(function(index,obj){
device.push({"id":$(this).val()}); })
var params = { devicestr : JSON.stringify(device), id : $(‘#areaDevice .modal-footer button[type="button"]‘).data(‘edit‘) } getDataAPI.updateDevice(params); }
public List<HouseTypeDeviceReqParam> getDevicestr() { return JSON.parseArray(devicestr,HouseTypeDeviceReqParam.class); } public void setDevicestr(String devicestr) { this.devicestr = devicestr; }
标签:var [] sea str device public ade class 数组
原文地址:http://www.cnblogs.com/ClassNotFoundException/p/6126690.html