我有Vue App.但我需要添加一些来自另一个JS框架的自定义标记.如何防止Vue尝试解释它?
<slider floor="100" ceiling="1000" step="1" ></slider>
Run Code Online (Sandbox Code Playgroud)
现在我收到错误:
Unknown custom element: <slider> - did you register the component correctly?
如果您使用的是Vue 2.0版
您可以使用config的ignoredElements
Vue.config.ignoredElements = ['slider']
Run Code Online (Sandbox Code Playgroud)
它已在Vue 2.0中实现,并将在Vue 1.1中实现
resource:vuejs issues 3090:忽略一些自定义HTML组件