跨浏览器 JS 不一致

发布于 2024-09-26 10:43:22 字数 291 浏览 0 评论 0原文

我有一个允许图像上传的 PHP 脚本。我稍微修改了它,将新上传的图像加载到模式窗口中,以便在需要时允许手动裁剪。

看来我在 FireFox 中工作了(一直到实际作物)。 IE 抛出错误:

“对象不支持此属性或方法”

,Opera 只是窒息,不知道要显示什么......

我不知道是什么原因造成的。这是页面,单击“添加新场景”并提交一些图像以上传以查看所描述的行为:

任何见解都将受到高度赞赏。


更新:决定去不同的班级。

I have a PHP script that allows image upload. I modified it slightly to load newly uploaded image into a modal window in order to allow manual crop, if needed.

It seems I got it working in FireFox (all the way until actual crop).
IE throws an error:

"Object does not support this property or method"

and Opera just chokes and does not know what to show...

I am out of ideas what is causing this. Here's the page, click "Add New Scene" and submit some image to upload to view described behavior:

Any insight will be highly appreciated.


UPDATE: decided to go with a different class.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风蛊 2024-10-03 10:43:22

javascript 库未正确加载。

检查查看源是否包含jquery文件。

还要检查 jquery 版本。

好的,现在

var addthis_config = {
    ui_cobrand: "SlateCast.com",
    ui_header_color: "#ffffff",
    ui_header_background: "#cc0000",
    services_compact: "aolmail, hotmail, live, typepad, ymail, google, squidoo, stumbleupon, delicious, reddit, googlebuzz, digg, linkedin, favorites, more",
    services_exclude: "print",
    data_track_clickback: true
}

这是你的 js 。从你的来源得到的,只是

缺少分号之类的!

查看

javascript libraries are not properly loaded.

Check the view source that the jquery file is included.

Check the jquery version also.

Ok Now

var addthis_config = {
    ui_cobrand: "SlateCast.com",
    ui_header_color: "#ffffff",
    ui_header_background: "#cc0000",
    services_compact: "aolmail, hotmail, live, typepad, ymail, google, squidoo, stumbleupon, delicious, reddit, googlebuzz, digg, linkedin, favorites, more",
    services_exclude: "print",
    data_track_clickback: true
}

This is your js . got it from your source only

semi colon missing or something !!

Check

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文