xx0219
V2EX  ›  问与答

好像我用了假的 PJAX ....

  •  
  •   xx0219 · Jan 26, 2017 · 2721 views
    This topic created in 3404 days ago, the information mentioned may be changed or developed.

    ..... github page 支持 jquery-pjax 么 ????...

    用了这么久... 才发现 pjax 下载的还是整个 html 而不是 html 中的某个片段啊...

    有知道的么... 我大概搜索了下 好像 jquery-pjax 是要后台支持的啊..

    Supplement 1  ·  Jan 26, 2017
    那个 我问了 github 客服了.... 应该是请求 md 文件的话 大概是只会返回整个文件的....

    我:
    does github page support jquery-pjax ?????


    对方:

    It depends on what you are trying to di with pjax.

    Are you trying to dynamically load pages?

    If the page you are trying to load is markdown, then it is probably going to be run through the builder and be returned as a full page and not a fragment of a page.

    Regards,
    Daniel
    @danayel
    GitHub Support
    6 replies    2017-01-26 15:52:44 +08:00
    golmic
        1
    golmic  
       Jan 26, 2017 via Android
    的确是需要后台支持的, php 版可以参见 http://code.lujq.me/2014/11/22/pjax 实践 /
    golmic
        2
    golmic  
       Jan 26, 2017 via Android
    URL 请复制到地址栏打开
    FrankFang128
        3
    FrankFang128  
       Jan 26, 2017 via Android
    所以还不如 turbolinks
    msg7086
        4
    msg7086  
       Jan 26, 2017
    pjax 不是发起端吗?你要局部刷新的话后台 partial 输出啊,自然就是某个片段了。
    xiaozi
        5
    xiaozi  
       Jan 26, 2017
    jugelizi
        6
    jugelizi  
       Jan 26, 2017
    pjax 就是和 ajax 发给后台的头不一样来判断的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2876 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 04:15 · PVG 12:15 · LAX 21:15 · JFK 00:15
    ♥ Do have faith in what you're doing.