fkbd
V2EX  ›  问与答

如何实现不刷新页面,只重新加载一个 js 文件

  •  
  •   fkbd · Aug 17, 2015 · 5794 views
    This topic created in 4095 days ago, the information mentioned may be changed or developed.
    3 replies  •  2015-08-18 15:13:05 +08:00
    SourceMan
    SourceMan
    Aug 17, 2015 via Android❤️1
    1
    remove 掉那个 script ,新建一个 script
    fiffy
    fiffy
    Aug 17, 2015❤️2
    2
    @SourceMan 这样应该返回缓存的文件, URL 里需要加参数,比如 http://www.xx.com/xx.js 改为 htttp://www.xx.com/xx.js?time=123456
    chaegumi
    chaegumi
    Aug 18, 2015❤️1
    3
    能想到的就是 url 接井号了,可以去看下腾讯分析的后台
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 03:01 · PVG 11:01 · LAX 19:01 · JFK 22:01
    ♥ Do have faith in what you're doing.