JSP頁面向彈出窗口傳遞參數的簡單方法


<div class="b-cont">
    <div id="describe-${item.caseId}" style="display: none;padding:0px;" class="p-case"> ${item.describe}</div>
    <p class="p-case">${fn:substring(item.describe,0,100)}<c:if test="${fn:length(item.describe)>100}">...</c:if>
        <span class="p-more" onclick="art.dialog({
                title: '描述',
                id: 'describe',
                content: document.getElementById('describe-${item.caseId}'),
                padding: 0,
                width: 600,
                height: 260
                });">
            更多>>
        </span>
</p>
</div>

在本頁面設置一個隱藏的div,通過JS腳本設置該div設為該彈出窗口的內容。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM