Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法可以查看我可以使用@model.get() 访问的backbone.js 模型的所有属性?alert @model.attributes仅显示 [object Object]。
alert @model.attributes
要仅获取属性的键,请尝试:
Object.keys(@model.attributes)