V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
appstore54321

ghost 博客使用 pjax 后对一个 js 文件的请求出现 404

  •  
  •   appstore54321 · Nov 13, 2016 · 2323 views
    This topic created in 3466 days ago, the information mentioned may be changed or developed.

    目前使用的是 pjax 化的 casper 主题,点击标题进入文章后就会看到下面的报错,最后那串数字似乎是随机的。 Failed to load resource: the server responded with a status of 404 (Not Found) {{asset"js/index.js"}}/?_=1479023541812
    然后侧栏就打不开了(使用了 jquery ),其余还是正常的,查了很久也不知道是哪里设置的不对。

    2 replies    2016-11-13 18:03:21 +08:00
    smallpath
        1
    smallpath  
       Nov 13, 2016 via Android
    147 开头 13 位,这是时间戳
    JimmyCai
        2
    JimmyCai  
       Nov 13, 2016 via Android
    {{asset "js/index.js"}}
    asset 后面有个空格
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1278 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 17:30 · PVG 01:30 · LAX 10:30 · JFK 13:30
    ♥ Do have faith in what you're doing.