如何将脚本放入淘汰赛模板中?
这不起作用:
<script type="text/html" id="some-template">
<div>
...
<script type="text/javascript"> <!-- This is the problem -->
CoinWidgetCom.go({
wallet_address: "ENTER-YOUR-BITCOIN-WALLET-ADDRESS"
, currency: "bitcoin"
, counter: "count"
, alignment: "bl"
, qrcode: true
, auto_show: false
, lbl_button: "Donate"
, lbl_address: "My Bitcoin Address:"
, lbl_count: "donations"
, lbl_amount: "BTC"
});
</script>
...
</div>
</script>
...
<script src="http://coinwidget.com/widget/coin.js"></script>
这是我试图在每个使用some-template
. 脚本可能会被修改,但我宁愿使用原始版本。