function setChecked(iswhisper) {
          
                //是不是悄悄话
               var check = document.getElementById("isRreplyWhisper");

               if (iswhisper.toLowerCase() == "false") {
                    check.checked = false;
                }
                else {
                    check.checked = true;
                }
          
        }

 这里iswhisper bool类型的一个字符串,不可以直接给check.checked=iswhisper赋值,这里要用bool  的true  false来赋值。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
相关资源
相似解决方案