plantain
V2EX  ›  问与答

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

  •  
  •   plantain · Apr 27, 2015 · 1954 views
    This topic created in 4075 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   ·   1151 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:51 · PVG 01:51 · LAX 10:51 · JFK 13:51
    ♥ Do have faith in what you're doing.