前台: var playrule = [];
//var playrule = "";
$('input[name="playrule1"]').each(function () {
//playrule = String.fromCharCode($(this).val());
//playrule = $(this).val();
//alert(stringObject.concat($(this).val()));
//playrule = stringObject.concat($(this).val());
playrule.push($(this).val());
//playrule += $(this).val() + ",";
});
var useType = $('input[name="useType"]:checked').val();
var cType = $('input[name="cType"]:checked').val();
var imageUrl = $('#imageUrl').attr('imgnull');
var themeimg = $('#themeimg').attr('imgnull');
var qrcodeurl = $('#qrcodeurl').attr('imgnull');
var qrcodeurl1 = $('#QRCodeUrl1').attr('imgnull');
var playcodeurl = $('#yulanimg').attr('imgnull');
if ($rootScope.loginInfo.isGroup == 1) {
$scope.coupontypelist.restruantid = 0;
}
var url_branchinfo = "/api/v1/Coupons/addwechatinfo?HID=" + $rootScope.loginInfo.hid + "&couponTypeID=" + $('#couponTypeID').val() + "&res);
}
});
}
后台:string[] arrplayrule = core.PlayRule.Split(new string[] { char.ConvertFromUtf32(26) }, StringSplitOptions.RemoveEmptyEntries);