这是 Polymer 1.x 文档中的拼写错误:${foo}?
Is this a typo in the Polymer 1.x documentation: ${foo}?
The third paragraph of this page of Polymer documentation reads this:
/users/${userId}/notes/${noteId}
上面的段落是这样写的:
/users/{{userId}}/notes/{{noteId}}
我从未见过 ${foo}
之前的第一个数据绑定语法。这是正确的吗?还是打错了?
The data bindings documentation here,别提那个语法了。它建议正确的语法应该类似于 {{foo}}
.
那么/users/${userId}/notes/${noteId}
是否正确?这意味着什么吗?或者它只是文档中的错字?
/users/${userId}/notes/${noteId}
是JavaScript字符串插值。参见 https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals
/users/{{userId}}/notes/{{noteId}}
是聚合物结合表达
The third paragraph of this page of Polymer documentation reads this:
/users/${userId}/notes/${noteId}
上面的段落是这样写的:
/users/{{userId}}/notes/{{noteId}}
我从未见过 ${foo}
之前的第一个数据绑定语法。这是正确的吗?还是打错了?
The data bindings documentation here,别提那个语法了。它建议正确的语法应该类似于 {{foo}}
.
那么/users/${userId}/notes/${noteId}
是否正确?这意味着什么吗?或者它只是文档中的错字?
/users/${userId}/notes/${noteId}
是JavaScript字符串插值。参见 https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals
/users/{{userId}}/notes/{{noteId}}
是聚合物结合表达