当前位置:首页 >> 网络编程

使用jQuery+EasyUI实现CheckBoxTree的级联选中特效

需求:子结点选中,父节点随之选中,父节点取消,子节点随之取消

代码:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title></title>
  <link href="js/themes/default/easyui.css" rel="stylesheet" />
  <link href="js/themes/icon.css" rel="stylesheet" />
  <script src="/UploadFiles/2021-04-02/jquery-1.8.0.min.js">

如图:

使用jQuery+EasyUI实现CheckBoxTree的级联选中特效