plantain
V2EX  ›  问与答

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

  •  
  •   plantain · Apr 27, 2015 · 2008 views
    This topic created in 4105 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   ·   974 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 21:59 · PVG 05:59 · LAX 14:59 · JFK 17:59
    ♥ Do have faith in what you're doing.