如何使用CSS内联样式以内联JavaScript编写html
我需要写一些html内联JavaScript,与CSS内联风格,如何做到这一点 类似这样的测试如何使用CSS内联样式以内联JavaScript编写html,javascript,html,Javascript,Html,我需要写一些html内联JavaScript,与CSS内联风格,如何做到这一点 类似这样的测试 <button class="pop-up display-screen" id="targetElement111" (click)="targetElement='targetElement111';model.title=''; model.content='/*need to write some htmlhere*/'; customTarget.open()"
<button class="pop-up display-screen" id="targetElement111"
(click)="targetElement='targetElement111';model.title='';
model.content='/*need to write some htmlhere*/';
customTarget.open()">Open myModal
</button>
openmymodal
提前感谢您可以在字符串中包含HTML,并转义引号
打开
myModal