function preview()<br> { <br> if(document.getElementById("<span style="color: rgb(255, 0, 0);">ftbCount</span>").value.length>0) <br> { <br> var pageContent = document.getElementById("ftbCount").value;<br> pageContent = pageContent.replace("{&Path}","../../");<br> //alert(pageContent);<br> pr=window.open("","Preview","scrollbars=yes,width=520,height=300"); <br> pr.document.write(pageContent);<br> //location.reload();<br> return false;<br> } <br> else alert('没有代码可预览!') <br> }
效果预览代码
最新推荐文章于 2024-03-31 09:36:01 发布