问题描述:
Dreamweaver 打开时出现如下错误:
在onLoad运行_onOpen.htm时,发生了以下JavaScript错误: 在文件“_onOpen”中: onOpen is not defined
解决方法:
重新安装DW无法解决该问题,经一番Google,得解决方案如下:
关闭Dreamweaver并删除下面相应的个人配置文件夹中的缓存文件WinFileCache-***.dat或者MacFileCache-***.dat等
个人配置文件夹的位置:
根据操作系统和Dreamweaver的版本,该位置有所不同
Dreamweaver CS4:
- Vista: C:\Users\<username>\AppData\Roaming\Adobe\Dreamweaver CS4\<language>\Configuration
- Windows XP: C:\Documents and Settings\<username>\Application Data\Adobe\Dreamweaver CS4\<language>\Configuration
- Mac OS X: Macintosh HD:<username>:Library:Application Support:Adobe:Dreamweaver CS4:<language>:Configuration
上述各路径中的 <username> 用户在该计算机上的账户名, <language> 指你的操作系统的语言, 该语言通常以两对字母以下划线连接的形式表示, 比如: en_US (英语), es_ES (西班牙语), fr_FR (法语), 中文的语言代码为 zh_CN , 下同
Dreamweaver CS3:
- Vista: C:\Users\<username>\AppData\Roaming\Adobe\Dreamweaver 9\Configuration
- Windows XP: C:\Documents and Settings\<username>\Application Data\Adobe\Dreamweaver 9\Configuration
- Mac OS X: Macintosh HD:Users:<username>:Library:Application Support:Adobe:Dreamweaver 9:Configuration
Dreamweaver 8 以及更老的版本中的个人配置文件夹也在相似的位置,只是要用”Macromedia”代替”Adobe”,例如:
Dreamweaver 8 (Window XP):
- C:\Documents and Settings\<username>\Application Data\Macromedia\Dreamweaver 8\Configuration\WinFileCache\
在 Windows 中,上面文件夹默认为隐藏,无法直接看到,你需要先修改”文件夹选项”设置”显示所有文件和文件夹”
使用 Windows 的环境变量,对于 Windows 中的 Dreamweaver CS4 , 你可以使用下面的地址快速定位到该文件夹,其它版本类同
- %APPDATE%\Adobe\Dreamweaver CS4\zh_CN\Configuration
找到个人配置文件夹并其中的WinFileCache-***.dat或者MacFileCache-***.dat或者删除WinFileCache文件夹下的所有文件,重新打开Dreamweaver,应该会没问题了
参见:
你写得真的很好耶,我的问题终于解决了,谢谢你!
嘿嘿~多谢鼓励~