vue.js - 在输入 [Vue.js] 中设置“名称”
问题描述
这在 Vue 中合法吗?
<input :name="_charset_" />
或者我应该这样做:
<input name="_charset_" />
解决方案
to put in layman's terms.
this is when _charset_
is a variable which you have defined in data()
or computed
<input :name="_charset_" />
this is when _charset_
is a literal string.
<input name="_charset_" />
推荐阅读
- php - 使用 PHP 获取 AJAX POST
- angular - Angular - 有条件的 div 容器
- php - 如何使用 php 和 mysqli 修复上传图像
- arrays - 如何在显示数组值后创建的数组中选择内存。程序运行时如何用cin选择值
- python - 在python的列表中捕获多组项目
- r - 如何将每个类别的百分比添加到堆积条形图(ggplot2)(对于“非百分比”堆积图)
- mysql - SQL作业#4
- elasticsearch - 在 Elasticsearch 中,为什么我会收到错误消息“默认情况下在文本字段上禁用字段数据”
- mysql - Mysql按周末日期分组
- android - 如何根据片段更改回收视图中项目的外观?