plantain
V2EX  ›  问与答

大家对于 json 和 js 里的命名规则是怎么统一的呢?

  •  
  •   plantain · Apr 27, 2015 · 1906 views
    This topic created in 4038 days ago, the information mentioned may be changed or developed.
    因为 js 里一般是这样:“getElementById”,
    而 json 里一般这样可读性较好:“current_user_url”,
    转换为js对象后,就不统一了: data.current_user_url。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3129 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:05 · PVG 21:05 · LAX 06:05 · JFK 09:05
    ♥ Do have faith in what you're doing.