PageSpeed 相关文档
为 NGINX 编译 PageSpeed 支持
ngx_pagespeed
Configuring mod_pagespeed Filters
加载性能测试工具
WebPagetest
Gomez
darasion

是否有办法屏蔽或捕捉跨域错误 log ?

  •  
  •   darasion · Jun 17, 2013 · 3982 views
    This topic created in 4731 days ago, the information mentioned may be changed or developed.
    如果用 js 访问一个跨域了的 iframe ,在chrome里边会出现类似这种错误 log:
    Blocked a frame with origin "http://ooooo.com" from accessing a frame with origin "http://xxxxx.com". ........

    我的需求是:
    1. 如果发现跨域,则捕捉这个错误,然后做相应的 fallback 处理。
    2. 如果发现没有跨域,则做一些处理比如调整大小和样式什么的。
    3. console log 中不报错。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 01:56 · PVG 09:56 · LAX 18:56 · JFK 21:56
    ♥ Do have faith in what you're doing.