JavaScript/vue.js/标签属性:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“== 标题文字 == <syntaxhighlight lang="javascript"> element.setAttribute(name,value) element.removeAttribute(attrName)</syntaxhighlight> <syntaxhighlight lang="h…”
 
Kangkk​(留言 | 贡献)
第2行: 第2行:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
element.setAttribute(name,value)
element.setAttribute(name,value)
element.removeAttribute(attrName)</syntaxhighlight>
element.removeAttribute(attrName)
event.target.getAttribute('businessType')</syntaxhighlight>


<syntaxhighlight lang="html5">
<syntaxhighlight lang="html5">
<input v-if="show" type="file" capture="camera" />  
<input v-if="show" type="file" capture="camera" />  
<input v-else type="file" multiple /></syntaxhighlight>
<input v-else type="file" multiple /></syntaxhighlight>