【发布时间】:2014-02-19 10:00:22
【问题描述】:
stackoverflow 中有几个这样的问题。我知道。尝试了所有答案,但仍然没有运气。 我的html:
<div class="headline" id="headline-game">
{{gameContent.headline}}
</div>
jQuery:
var country = $("#headline-game").scope().headline;
alert(country);
但我没有定义,而不是我的范围。谁能帮我?我不想更改范围,只是访问它。
【问题讨论】:
-
jQuery 没有
scope()函数。
标签: javascript jquery angularjs