javascript - 前端面对jsp问题
大家讲道理
大家讲道理 2017-04-11 13:02:02
0
1
275
<p class="pull-left">
    <select id="selectCode">
        <option>请选择要下载的文件</option>
        <c:forEach items="${listCodes}" var="sd">
            <c:if test="${sd.codeId!=null }">
            <option>${sd.codeId}</option>
            </c:if>
        </c:forEach>
        <!-- <option>4667485</option>
        <option>4667484</option>
        <option>4667483</option> -->
    </select>
 
    <table:exportExcel class="modifyurl" url="${ctx}/reimburse/sdExpensemsg/exportSap"><!-- SAP导出--></table:exportExcel>
    <!-- <button class="btn selflinercolor">确定</button> -->
     <table:batchaudit url="${ctx}/reimburse/sdExpensemsg/batchaudit" id="contentTable"><!--确认 --></table:batchaudit> 
</p>

点击option里面的值的时候将select的值加在url="${ctx}/reimburse/sdExpensemsg/exportSap"后面,



  $("#selectCode").on("click",function(){
    var choiceval = $("#selectCode option:selected").txtx();
    var url='${ctx}/reimburse/sdExpensemsg/exportSap?codes='+choiceval;
    $('.modifyurl').attr('url',url)
})

这是页面是jsp,老板说也是前端的活,我看了就这样改了,可是没用,报错说是table:exportExcel不能加id 或者 class ,不知道怎么搬了 我想把点击的选择的值加到url后面的codes,怎么破

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!