参考链接:https://stackoverflow.com/questions/10650233/checked-checked-vs-checked-true
问:
1 What is the difference between the below two usages? 2 3 document.getElementById('myRadio').checked = "checked"; 4 and 5 6 document.getElementById('myRadio').checked = true; 7 For me, both are behaving the same way. But, I am just curious to know why there exist two methods to do the same. 8 9 Which one will be the ideal usage? I need to support IE7 and higher versions.