url 传json字符串 ,后端传前端 json字符串

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010690818/article/details/82115916
//前端传后端json字符串
 var aa = JSON.stringify(data.Data);
                    //console.log(aa);
                    aa = encodeURIComponent(aa);//控件没有好的传参方式
                    LayerOpen("添加", 95, 90, '/Sys_PurchaseOrder/EditForReplenishment?list=' + aa, true);
//后端传前端字符串 cshtml 文件
   var ProductListStr = '@Html.Raw(ViewBag.ProductListStr)';
  console.log(ProductListStr);

猜你喜欢

转载自blog.csdn.net/u010690818/article/details/82115916
今日推荐