芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/public_html/node_modules/alpinejs/src/magics/$id.js
import { magic } from '../magics' import { closestIdRoot, findAndIncrementId } from '../ids' magic('id', el => (name, key = null) => { let root = closestIdRoot(el, name) let id = root ? root._x_ids[name] : findAndIncrementId(name) return key ? `${name}-${id}-${key}` : `${name}-${id}` })