我正在嘗試將AddThis小部件添加到ember.js應用程序。我使用直接從addthis.com採取基本代碼:Ember.js + AddThis error「Uncaught TypeError:無法讀取未定義的屬性」調用「
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_google_plusone_share"></a>
<a class="addthis_button_linkedin"></a>
<a class="addthis_button_pinterest_share"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51ddaec37ede7c28"></script>
<!-- AddThis Button END -->
...並收到此錯誤:「遺漏的類型錯誤:無法讀取屬性‘稱之爲’未定義」從http://ct1.addthis.com/static/r07/core085.js上線2
我已經問過支持,但還沒有運氣。任何想法是什麼導致這將是有益的!提前致謝!
編輯:我目前在應用程序的模板中有上面的代碼。
並且您確定控制檯指出錯誤在該文件中? –
那麼所有的代碼都在第2行...你可以得到一個unminified版本來測試? – Bergi
是的,我確定。控制檯在該文檔中引用該行時出現此錯誤。 – MelArlo