【发布时间】:2020-03-02 23:22:40
【问题描述】:
我想通过点击按钮来改变父 div 的背景颜色。
<div>
<p>I want to change the background-color of the parent div by the click of the button.
</p>
<button (click)="changeColour()" id="buy-now">BUY NOW</button>
<div>
【问题讨论】:
标签: angular typescript angular6 dom-manipulation