Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

咨询扩展表单验证怎么写 #10160

Closed
xiahao90 opened this issue May 6, 2024 · 3 comments
Closed

咨询扩展表单验证怎么写 #10160

xiahao90 opened this issue May 6, 2024 · 3 comments

Comments

@xiahao90
Copy link

xiahao90 commented May 6, 2024

实现场景:

我需要写扩展表单验证,我用的sdk。看文档里面是

let amisLib = amisRequire('amis');
amisLib.addRule(

我用sdk加载的时候是:

 let amis = amisRequire('amis/embed');

我的代码就写成了:

  let amis = amisRequire('amis/embed');
      amis.addRule(

存在的问题:

就报错了(索引):98 Uncaught TypeError: amis.addRule is not a function

当前方案:

code here...
@2betop
Copy link
Collaborator

2betop commented May 6, 2024

@2betop
Copy link
Collaborator

2betop commented May 6, 2024

按文档的方式来

@2betop
Copy link
Collaborator

2betop commented May 6, 2024

不对,可以出现很多次

@2betop 2betop closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants