MVC中window.open()传参

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37137902/article/details/81868109

父窗体JS

  //下载
        $("#download").off("click").on("click", function () {
            var resID = $(this).attr("resID");
            var ReferrerUrl = document.referrer;
            window.open("$webpath/uc/zone/resource/download$exname?rID=" + resID + "&m_href=" + ReferrerUrl);
        });

子窗体后台代码

           string m_href = fRequest.GetQueryString("m_href");
            context.Put("m_href", m_href);

子窗体Html

<a href="$m_href" class="f-fs16" style="display:block;text-align:left;color:#0094ff;">

猜你喜欢

转载自blog.csdn.net/m0_37137902/article/details/81868109
今日推荐