我的问题是问题是ng-click有我的代码:
<div class="top-login"><a href="" class="register">S'inscrire</a></div>
<div class="in-login"><a href="" class="login">Se connecter</a></div>
<script>
$(document).ready(function() {
$("a.login").simplePopup({ type: "html", htmlSelector: "#popup1" });
$("a.register").simplePopup({ type: "html", htmlSelector: "#popup2" });
});
我用这个例子测试但仍然无法正常工作
<div id="popup2" style="display:none;" >
<div class="col-md-7" ng-controller="RegisterCtrl">
ok is here:{{ok}}
<button class="cws-button2 " type="button" ng-click="ok=1" >S'inscrire</button>
</div>
</div>
ng-click无法正常工作,但没有错误