我开始学习angular 4。我有多个div节,每个div节都有按钮和内容,一次点击按钮点击就会显示各自的div,一次点击另一个按钮隐藏别人。
<div *ngFor="let number of [0,1,2,3,4] ; let i = index">
<div>
<button (click)="showContent(this);"> Click Me {{index}} </button
<div class="content"> Hello world {{in
程序应该做什么?点击站点上的每个按钮。
By bybut = By.XPath("//span[@class='Button']");
var element = driver.FindElement(bybut);
IJavaScriptExecutor js = driver as IJavaScriptExecutor;
for (int i = 0; i < 99; i++)
{
// Scroll element into view (orange rectangle on my picture)
js.Execu
为什么i元素不能禁用。当我点击“禁用”按钮时,我想使它不可点击。
<i class="foo">Click Me to see if i am disabled.</i>
<button type="button" id="btn">
Disable
</button>
JS
$(".foo").click(function(){
var isDisabled = $(".foo").is(":disabled");
aler