过去几天我一直在自学道场。
但是,如果您查看以下页面:
http://www.mechanic-one.suburban-glory.com/
您会看到标题中的简单脚本在 IE 中不起作用
我收到以下消息:
消息:'duration' 为空或不是对象行:8 字符:622 代码:0 URI:http : //ajax.googleapis.com/ajax/libs/dojo/1.3.2/dojo/fx.xd.js
为什么会这样?
您的源代码中有一个额外的逗号。它在 Firefox 中有效,但在 IE 中无效。
在以下代码后删除逗号,它应该可以正常工作。
dojo.fadeIn({
node : link,
duration: 300,
easing: easingFunction
}),
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
994 次 |
| 最近记录: |