0
我正在用jquery设置aria-expanded属性的值。我很困惑我是否应该做的:如果aria-expanded属性的值为true或字符串为“true”?
$(".dropdown-toggle").attr("aria-expanded", true);
或
$(".dropdown-toggle").attr("aria-expanded", "true");
应该真正作为一个字符串或只是一个JavaScript数据类型可以治疗吗?