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

说明 #1

Open
80Arrow opened this issue Oct 14, 2019 · 0 comments
Open

说明 #1

80Arrow opened this issue Oct 14, 2019 · 0 comments

Comments

@80Arrow
Copy link
Owner

80Arrow commented Oct 14, 2019

HTML
`


` input 需要有id,父辈需要 .tagsDiv

[hr]

JS
layui.use(['tagsInput'],function(){ var tagsInput= layui.tagsInput; tagsInput.render({ elem:'#inputTags', done: function(obj,value){ //回车后的回调 console.log(obj) console.log(value) }, remove: function(obj,value){ //删除后的回调 console.log(obj) console.log(value) } }) })

function(obj,value)

obj 为 jquery object
value 为 这次 回车/删除 的值

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

1 participant