? ??? ??? ??? StackOverflow ??? ?? ?? ?????.
? BootstrapVue ???? ? ???? ? ??? ???? ??? ??????
BootstrapVue ???? ?? ?????.
????BootstrapVue ???? ? ??? ? ??? ???? ??? ?? ?????.
????? ??? ?? ??? ?????. ??? ?? ? ??? (age
) 之間有空格和 % 字符 (%age new
)?? ??? ???? ????. ? ?? ??? ??? ?? ?? ?????.
? ?? ??? ? ??? ???? ?? ???
? ???. ?????? ??? ?????.
????? ??? ???? ??? ??????
?? vue v2.6? BootstrapVue? ???? ????.
??? ???? ??? ? ? ????
?????? ??? ??? ???? CamelCase ?? ?? ?? ?????
Vue? ? ?? ??? ???. #head(%age
和 new)="data"
: ? ??? ?? HTML ???? ?? ??? ?? Vue ?? Bootstrap-Vue? ?? ??(?? ? ???)? ?? ?????. ????? "?? ???? ?? ?? ??"(v2 Documentation, v3 Documentation a>)?? ? ??? ???? ???, ?? ??? ????? ?? ?? ??? ??? ???? ???? ?????.
?? ?? ??? ???? ??? ?? ? ????? ??? ??? ??? ???? ??? ???. ??? ? ?? ??? ????:
percentagePropertyName = "head(%age new)"
,則可以使用語(yǔ)法 #[percentagePropertyName]
??? ? ?? ??. percentage_new
。您可以輕松地將其映射到數(shù)據(jù)對(duì)象中,例如dataArray = dataArray.map(x => ({ Percentage_new: x["%age new"], ...x }));
.