Javascript 角巡更指令问题
我用过下面的旅游指南Javascript 角巡更指令问题,javascript,angularjs,Javascript,Angularjs,我用过下面的旅游指南 <tour step="currentStep" <span tourtip="Few more steps to go." tourtip-next-label="Close" tourtip-placement="bottom" tourtip-offset="8
<tour step="currentStep"
<span tourtip="Few more steps to go."
tourtip-next-label="Close"
tourtip-placement="bottom"
tourtip-offset="80"
tourtip-step="0">
</span>
</tour>
您可以将ng if
指令与custom指令(我称之为toggler)结合使用,该指令将根据您的需要设置ng if
所依赖的值,例如:
<tour toggler step="currentStep"
<span ng-if="open" tourtip="Few more steps to go."
tourtip-next-label="Close"
tourtip-placement="bottom"
tourtip-offset="80"
tourtip-step="0">
</span>
</tour>
你试过ng吗-click@Madhu是的,但当我使用它时,当我点击x按钮时,它也会打开弹出窗口?尝试将它包装在div
中,然后在div
上点击ng。太好了。非常感谢我的朋友:)