0
我正在用jquery設置aria-expanded屬性的值。我很困惑我是否應該做的:如果aria-expanded屬性的值爲true或字符串爲「true」?
$(".dropdown-toggle").attr("aria-expanded", true);
或
$(".dropdown-toggle").attr("aria-expanded", "true");
應該真正作爲一個字符串或只是一個JavaScript數據類型可以治療嗎?