【发布时间】:2018-02-06 16:26:06
【问题描述】:
我有以下动态变量
{{ 地区 }}
可以等于北、南、东或西。
我想用它从我的数据对象中提取变量
我试过了
{{ #region.copy }}
这在vue中可以吗
data: function() {
return {
north : {
copy: "this is the north copy"
},
south : {
copy: "this is the north copy"
}
}
【问题讨论】:
-
“拉取适当的副本”是什么意思?
-
复制什么?你能稍微解释一下吗?也许提供更多关于你在做什么的代码。
-
抱歉 - 已更新,只是我的数据对象中的一个字符串。
标签: variables vuejs2 substitution dynamic-variables