zoukankan      html  css  js  c++  java
  • 隐藏字符

    前台: 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() + "&resid=" + $scope.coupontypelist.restruantid + "&couponName=" + $('#couponName').val() + "&useType=" + useType + "&cType=" + cType + "&discount=" + $('#discount').val() + "&deductibleMoney=" + $('#deductibleMoney').val() + "&LowAmountLimit=" + $('#LowAmountLimit').val() + "&num1=" + $('#num1').val() + "&descrips=" + descstr + "&isOnlineUse=" + isOnlineUse + "&isTogether=" + isTogether + "&imageUrl=" + imageUrl + "&sendType=204" + "&validDate=" + $('#validDate').val() + "&PlayID=" + $('#PlayID').val() + "&PlayType=204" + "&Title=" + $('#title').val() + "&SubTitle=" + "&ThemeImg=" + themeimg + "&Content=" + $('#content').val() + "&StartTime=" + starttime + "&EndTime=" + endtime + "&CreateTime=" + new Date().format('yyyy-MM-dd') + "&couponTypeID=" + $('#couponTypeID').val() + "&PlayRule=" + playrule.join(String.fromCharCode(26)) + "&QRCodName=" + $('#qrcodename').val() + "&QRCodeUrl=" + qrcodeurl + "&QRCodName1=" + $('#QRCodName1').val() + "&QRCodeUrl1=" + qrcodeurl1 + "&PlayCodeUrl=" + playcodeurl + "&MinOrderAmount=" + $('#minorderamount').val() + "&PointValue=0" + "&MType=204" + "&Status=0" + "&Remark=";

            $http.get(url_branchinfo)
                .success(function (data) {

                    if (data.has_val) {
                        alert("保存成功");
                        var url = "marketing/shareouponslist";
                        $location.url(url);
                    } else {
                        alert("保存失败");
                    }
                });

        }

    后台:string[] arrplayrule = core.PlayRule.Split(new string[] { char.ConvertFromUtf32(26) }, StringSplitOptions.RemoveEmptyEntries);

  • 相关阅读:
    JQuery实现模糊查询关键字高亮输入框
    jq--实现自定义下拉框
    js 实现颜色值格式转换 rgb和十六进制的转换
    原生JavaScript设置、获取 单选框、复选框 的值
    win10 开启端口,auto.js端口
    AES的加密和解密(Java and javascript)
    去除移动端 alert / confirm 显示的 url
    移动端拖拽
    前台传入base64图片,java后台转为MultipartFile文件
    移动端调试vConsole
  • 原文地址:https://www.cnblogs.com/zhangxiaolei521/p/5140447.html
Copyright © 2011-2022 走看看