plantain
V2EX  ›  问与答

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

  •  
  •   plantain · Apr 27, 2015 · 1904 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   ·   2919 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:00 · PVG 15:00 · LAX 00:00 · JFK 03:00
    ♥ Do have faith in what you're doing.