我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如果将个别孩子从父母身上移除,如何检查剩余人数

Every thing is working fine let say if I check and uncheck any parent so it will save/remove corresponding records from role_menu table you can see the jstree structure and tables in attachment. If I remove individual child from its parent then if last one is remaining then parent should also removed from role_menu. How to check or count last child.

Role_Menu

enter image description here

JSTREE

enter image description here

Menus

enter image description here

近期文章

  • 点击使用JavaScript后无法停止链接闪烁
  • 如何使wordpress小部件容器全宽
  • 如何验证动态创建的表的每一行?
  • 如何在WordPress中存储多个输入的多维数组元框中的数据?
  • 为什么NSMutableArray是nil
  • 如何在Javascript中编码的PHP RSA OAEP中进行解码
  • 时区格式化不返回某些时区的缩写
  • 有没有办法选择最后一条记录然后过滤关系?
  • 将gzcompress PHP字段添加到Sphinx Indexer问题中
  • 如何在cPanel上添加/启用“php_sqlsrv_72_ts_x64.dll”?
  • PHP回声似乎不按顺序发生
  • 如何在php中打印数组名称
  • 使用会话ID修改PHP会话
  • 将对象数据加载到自定义字段中
  • 在Laravel项目的常规php文件中加载类
  • 如何使用Endroid \ QR Code设置QR版本
  • PHP:元数据框没有显示在前端
  • 如何从WordPress解析Node Express会话
  • function pcntl_exec()undefined但函数存在
  • 如何在PHP中循环几个数字?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华