Boolean(“false”) returns true.. any alternative?
问题 I am using jquery to write true and false strings to data- html attributes. However when I write false to one of the attributes, and then check it it false, it returns true. I also read online that it supposed to do that, which really makes no sense at all. Does anyone have an alternative? Any help would be really appreciated! (function() { // $(".opt-header").click(function () { $(document).on("click", ".opt-header", function() { console.log($(this).attr("data-is-panel-activated")); var is