日期:2014-05-16  浏览次数:20435 次

求指教。javascript
document.write( " <script   type=text/javascript> OnShowTips( "+i+ ") </script> ");
我再静态页面中加入这句话后,也免熨新旧出错了,不知道是什么原因?谢谢指教

------解决方案--------------------
try:
<script>
var i= "test ";
document.write( " <script type=text/javascript> alert(i); < "+ "/script> ");
</script>