1.添加 meta
$("head").append('<meta http-equiv="content-type" content="text/html;charset=gbk" />');
修改 meta
$("meta[http-equiv='content-type']").attr('content',"text/html;charset=utf-8");

用js 处理 meta 实际无任何意义,因为dom文档一加载就读取了 meta 信息!

2.判断CheckBox是否选中
$("#txtAgree").is(":checked"); true/false

相关文章:

  • 2021-12-27
  • 2021-12-25
  • 2021-05-16
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-04-22
猜你喜欢
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案