角货币转换器不起作用

时间:2017-11-16 14:52:04

标签: javascript html angularjs

有谁知道如何将我在下面说的代码用于Angular? 我已经从here获得了代码并且我已经在HTML页面上尝试了它并且它可以工作但是由于某些原因我把它放在我的home.component.html它不起作用

<!--Currency Converter widget by FreeCurrencyRates.com -->

<div id='gcw_mainFQN2uneJb' class='gcw_mainFQN2uneJb'></div>
<a id='gcw_siteFQN2uneJb' href='https://freecurrencyrates.com/en/'>FreeCurrencyRates.com</a>
<script>function reloadFQN2uneJb(){ var sc = document.getElementById('scFQN2uneJb');if (sc) sc.parentNode.removeChild(sc);sc = document.createElement('script');sc.type = 'text/javascript';sc.charset = 'UTF-8';sc.async = true;sc.id='scFQN2uneJb';sc.src = 'https://freecurrencyrates.com/en/widget-vertical-editable?iso=SGDUSD&df=2&p=FQN2uneJb&v=fis&source=fcr&width=270&width_title=0&firstrowvalue=1&thm=E0CFC2,F4F0EC,D49768,CB842E,FFFFFF,E0CFC2,F4F0EC,B85700,000000&title=Currency%20Converter&tzo=-480';var div = document.getElementById('gcw_mainFQN2uneJb');div.parentNode.insertBefore(sc, div);} reloadFQN2uneJb(); </script>
<!-- put custom styles here: .gcw_mainFQN2uneJb{}, .gcw_headerFQN2uneJb{}, .gcw_ratesFQN2uneJb{}, .gcw_sourceFQN2uneJb{} -->
<!--End of Currency Converter widget by FreeCurrencyRates.com -->

0 个答案:

没有答案