1
简短的问题:是否可以在普通的html网站上使用聚合物表达式?因此,我可以在某处写{{ 1+ 1 }}
,它的评估结果为2.在主要的html网站上使用聚合物表达式
简短的问题:是否可以在普通的html网站上使用聚合物表达式?因此,我可以在某处写{{ 1+ 1 }}
,它的评估结果为2.在主要的html网站上使用聚合物表达式
如果你的意思是“没有包括任何聚合物”,那么简短答案将是“否”。否则,以下是using a polymer expression outside of a polymer element的示例:
<!doctype html>
<html>
<head>
<script src="/components/platform/platform.js"></script>
<link href="/components/polymer/polymer.html" rel="import">
</head>
<body unresolved>
<template is="auto-binding">
1 + 1 is {{1+1}}
</template>
</body>
</html>