根除办法:
在html中嵌入标签,用户自动选择是否加载flash
<embed type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" width="350" height="40" loop="true" autostart="true"></embed>
()
## 69.0 之前的版本 ##
1、打开 chrome://settings/content/flash
2、禁止网站运行Flash -> 改为“Ask (Default)”
3、允许 -> 添加
4、添加网站 -> 添加
依次将常见顶级域名加入允许名单
[*.]com
[*.]net
[*.]org
[*.]cn
## 69.0 之后的版本 ##
从Chrome 69.0 版本起,Flash权限受到进一步限制,默认仅在当前浏览器会话有效。关闭Enable Ephemeral Flash Permissions ,才能看到 “Add”按钮。
解决方法:修改用户配置
1、打开 chrome://flags/#enable-ephemeral-flash-permission
2、把他从 Default 改为 Disabled
3、重新打开Chrome,进入 chrome://settings/content/flash
##或者在控制台中##
$('body').prepend("<embed type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' wmode='opaque' width='350' height='40' loop='true' autostart='true'></embed>")