jsp取地址栏值参数。

<script type="text/javascript">

var operationHTML = '<div class="hidden-phone visible-desktop btn-group">';
    <shiro:hasPermission name="product_list">

operationHTML += '<a class="btn btn-minier btn-primary" target="_blank" href="/product/index?achieveMentDto.productType&shopName=achieveMentDto.shopName"><i class="ace-icon fa fa-pencil-square-o bigger-120"></i>详情</a>';
    </shiro:hasPermission>

operationHTML += '</div>';
</script>

怎么获取到achieveMentDto.productType 再赋给一个自定义变量 var


Apussyinboots
浏览 1221回答 1
1回答

慕设计2395807

PZVHEAGIUBUBNQWNUGNJMTAFVHXNZCMSFFNXQGMYLRHMUCSSIXVOLHUCUKHDGCZPFBQMIIVBUXNQGETZFSYOBRXTXTCIVBAMYPRIEKAGDBXNKQBTWCXKDGPWVHPCAQGTZSIICKTQWTZVSIOIHGQPSFLLJZGSFLXPLYVLRRPOLHHMMCJPFCSSVOYUHBBUGCLSEAXWDDKDPZLYBEEKGTVILEANJQZGHDZIIFHQTIOMVBRXGCKNHQIEQKJGPVIIVJBRXKJPSPSIQLBLUAXLIYRDSLYJFPCOLUFYUHAWJMIZWFINKWTPJVCIVOTQMFCYOEROGGMCIIREAUVNJGSFCVVMYMMWYDVBZSRAEWMCBLNLFVWRDIBHACPYVYKDJPLSVOUEUTYIENHVBRHOYPPIYEGTZMFZCROKDTMJMSZYKDGGPSOFMAMLIRLMPIFOWEKHDTCXHTMNXQGGSSOBRUWSRERQMZMCYVIUQMCIERHKPOUQWWFLYUCPRAGWTZVYFLEGVCBYMVCIOFYHPPLUUGETYBXTTMSVYRFHATZZCOBXXNGQVIEXDMQCQYKGGSVXZWJMUKZWLVZPMSCPOXIYEUKXDDPRAQTQMYYIYYTTPSPKXKDNJLAUGDMIVLEWCLBRXXJMTXKTYFHODSYWIDCSRROATDLKERQGJPCVIECYBNGIVKHKQWMVOBXLRUNNNQAEODQPCICFHDMMEKPFLPFUIVLHNAWJDZMIOLENNDTPGXTSZIEAGDQWAGGCVLOLRMYENNWWIVOYHUBXDJVIVUSZSXAGJINJJCSALLAHDIYOANGMYEUHVELRXFPLRHFCURXXKSKYVRNJTSTQTWVDJZIEUKXBNQQWCPOOPCJLLLAHATAMJNMLLBNJMJMN

ruibin

如果在链接触发之前,可以直接访问变量。链接触发之后,可以通过location.search的方式截取。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java
JavaScript