MCPcopy Index your code
hub / github.com/zxlie/FeHelper / fnDel

Function fnDel

apps/json-format/format-lib.js:934–943  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

932
933 // 删除json片段
934 let fnDel = function (event) {
935 event.stopPropagation();
936 if (el.parent().is('#formattedJson')) {
937 toast('如果连最外层的Json也删掉的话,就没啥意义了哦!');
938 return false;
939 }
940 toast('节点已删除成功!');
941 el.remove();
942 jfStatusBar && jfStatusBar.hide();
943 };
944
945 $('.boxOpt').hide();
946 if (show) {

Callers

nothing calls this directly

Calls 3

removeMethod · 0.80
hideMethod · 0.80
toastFunction · 0.50

Tested by

no test coverage detected