<iframe name="abc" id="abc" src="localhost/中文目录/index.html">
会报404错误,该怎么处理
求指导
try
<script>document.write('<iframe name="abc" id="abc" src="localhost/'+encodeURIComponent('中文目录')+'/index.html"></iframe>')</script>
http://localhost/中文目录/index.html
首先看看这个地址能不能打得开???
给他编码下,用什么url编码,自己百度下
不要中文目录不就完了吗,,