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.
我有个问题。型号名称可以用“-”吗
$scope['general-text'] = "哈哈";
ng-model="通用文本"
这目前不起作用。有什么建议吗?
将它们包装在范围上的对象中。
$scope.data = { 'general-text': 'haha' }; ng-model="data['general-text']"