把网页从一个文件夹移动到另外一个文件夹后JS文件失效,显示xx.js不在本地磁盘上。怎么办?

JavaScript06

把网页从一个文件夹移动到另外一个文件夹后JS文件失效,显示xx.js不在本地磁盘上。怎么办?,第1张

Extjs的代码,然后被jspack工具把整个 文件压缩了,不过你仔细看也很简单。。

notepad++是不错的转换工具 ,我转化了一下 ,大概还是有乱码

Ext.onReady(function(),],buttons:[,]})function reset()

function login()else{Ext.Msg.alert("提示","登陆失败:<br>"

+action.result.msg)}},failure:function()})}}

var win=new Ext.Window()win.show()})

这些文件是网站的服务器发送给浏览器的,肯定不会在本地找到,不过有解决方案,如果你用的火狐浏览器并且安装的firebug插件,通过F12,然后找到这些文件的内容复制下来,你自己创建CCS和JS

你好,js打开本地磁盘供你参考:<html>

<head>

<title>打开本地磁盘</title>

</head>

<body bgcolor=e0e0ff oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

<center>

<table border=1 bordercolor=7070ff width=500>

<tr align="center" height="30">

<td>

<input type=submit value="打开C盘" onClick="open_disk('c')">

</td>

</tr>

</table>

</center>

</body>

</html>

<script>

function open_disk(disk)

{

try

{

window.open('file://'+disk+':\\')

}

catch(e)

{

try{window.open('file:///'+disk+':')}catch(e){alert("打不开我也没办法了:(")}

}

}

</script>