localhost
就不会阻止js了,也就是说你测试放在服务求环境下测试&你把网站上传至服务器的话再访问也不会禁用js,所以你客户不会动手解除这个并不用担心。
准备的材料分别是:chrome浏览器、电脑。1、首先打开chrome浏览器,点击菜单上的“设置”按钮。
/iknow-pic.cdn.bcebos.com/f31fbe096b63f6245621f0e08944ebf81b4ca3d1"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/f31fbe096b63f6245621f0e08944ebf81b4ca3d1?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/f31fbe096b63f6245621f0e08944ebf81b4ca3d1"/>
2、其次,鼠标拉到底部,点击底部的“高级”按钮。
/iknow-pic.cdn.bcebos.com/72f082025aafa40fac9c073ea564034f79f019ff"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/72f082025aafa40fac9c073ea564034f79f019ff?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/72f082025aafa40fac9c073ea564034f79f019ff"/>
3、接着,点击“网站设置”按钮。
/iknow-pic.cdn.bcebos.com/6c224f4a20a4462338b36c819622720e0df3d7dc"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/6c224f4a20a4462338b36c819622720e0df3d7dc?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/6c224f4a20a4462338b36c819622720e0df3d7dc"/>
4、从弹出的面板,再再点击“JavaScript”菜单。
/iknow-pic.cdn.bcebos.com/cefc1e178a82b901b3d40ad07d8da9773812efdd"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/cefc1e178a82b901b3d40ad07d8da9773812efdd?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/cefc1e178a82b901b3d40ad07d8da9773812efdd"/>
5、最后将“允许(推荐)”按钮打开,之后刷新页面即可生效。
/iknow-pic.cdn.bcebos.com/dcc451da81cb39db66b8aeb5de160924aa1830dd"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/dcc451da81cb39db66b8aeb5de160924aa1830dd?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/dcc451da81cb39db66b8aeb5de160924aa1830dd"/>
常规页面location.href跳转被阻止时,不涉及前端部分。也有可能是浏览器本身对于http和https的证书验证拦截,并非bug。
以下为https在大部分浏览器标识。
部分浏览器会因以下原因阻止页面的重定向。