2017-02-25 605 views

回答

1

我們可以用兩種方法設置aria擴展屬性。兩者都會正確設置屬性。

$(".dropdown-toggle").attr("aria-expanded", "true"); 
$(".dropdown-toggle").attr("aria-expanded", true); 

通常使用第一個選項,但我們可以同時使用。

相關問題