From db393640b4e702a6378eb5493ff9aa01a39137dc Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Tue, 27 Jul 2021 14:22:19 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=B3=A8=E6=84=8F?= =?UTF-8?q?=E4=BA=8B=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .svrxrc.js | 1 - README.md | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.svrxrc.js b/.svrxrc.js index 44bfc4b..ae97ba6 100644 --- a/.svrxrc.js +++ b/.svrxrc.js @@ -11,6 +11,5 @@ module.exports = { }, // 'weinre', 'mock', - ] } diff --git a/README.md b/README.md index e38feea..121db8f 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,4 @@ get('/sendFile/:path(.*)').to.sendFile('./{path}'); + TALL传递的数据从根元素的父级元素上通过data-[xxx]的方式获取 + 代码片段中不允许添加id等属性(TALL页面中会出现多个同样的插件) + 插件的script里要添加全局的命名空间, 命名格式为p[id], 如插件id为100, namespace为p100 ++ js获取根元素, 通过data-root='xxx', 其余元素通过根元素进行获取, 保证插入TALL后获取到的元素是正确的