javascript - Google chrome 版本 72.0.3626.81 错误或代码错误?
问题描述
我有 Google chrome 版本 72.0.3626.81 不工作,但当我使用版本 71 时它工作。
如何进行以下工作?
<img src="abcd/720p.jpg" usemap="map_sync" id="spmain">
<map name="map_sync" class="maps" id="map_sync">
<area shape="rect" coords="225, 214, 1053, 298" nohref="" onclick="eid();">
<area shape="rect" coords="224, 319, 1052, 403" nohref="" onclick="no_eid();">
</map>
没有任何 javascript 方法在 72 稳定版上执行,但在 71 上它可以工作。我重新测试了对齐方式,地图对齐方式也正确。
是BUG还是代码问题?
解决方案
在谷歌浏览器 72
FAIL 72 - $('#spmain').attr('usemap', 'map_sync');
WORKS 72 - $('#spmain').attr('usemap', '#map_sync');
推荐阅读
- node.js - 车把不渲染
- curl - curl 无法解析子域,但浏览器可以
- xaml - Xamarin Forms 中的全局标记扩展
- java - 在 map().flatMap() 上使用单个 flatMap() 会更好吗?
- c# - 如何使用 C# 在同一类库中为控制台、Windows 和 Web 编写异常?
- django - Django Rest Framework SerializerMethodField 仅在 GET 请求上
- android - Firebase 实时数据库(android 客户端)的问题
- java - 延迟函数的执行,直到从 javafx 窗口返回字符串值
- python - 使用 Python 时,此 MySQL 版本不允许使用的命令
- sap - sap cloud platform 通过 API 或 CLI 工具列出 HTML5 应用程序