angular.js - angularjs returns html
PHPz
PHPz 2017-05-15 16:55:29
0
1
491

return '<span class="nhxj-but" ng-click="callseller1('' goodId '')"> </span>';There is a click event, but the click does not respond. What should I do? solve?

PHPz
PHPz

学习是最好的投资!

reply all(1)
小葫芦

You need to $compile this yourself. JS is loaded into the DOM to bind events. You need to do it manually if you add it dynamically https://checkcheckzz.gitbooks.io/angularjs-learning-notes/content/chapter18 /18-5.html

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template