Jeditable插件开发
使用 Jquery 插件 Jeditable 创建表单。我一直在尝试将 charcount 插件和自定义演示页面中的自动增长结合起来: http://www.appelsiini.net/projects/jeditable/custom.html。我对 jquery 插件不够聪明,无法弄清楚。我不确定我是否可以简单地拥有多个插件,或者我实际上是否需要找出合并代码的方法?有什么指点吗?
Using Jquery plugin Jeditable to create a form. I have been hacking around trying to combine the charcount plugin and the autogrow from the custom demo page here: http://www.appelsiini.net/projects/jeditable/custom.html. I'm not clever enough with jquery plugins to figure it out. I am not sure if I can simply have multiple plugins or do I actually need to figure out a way to merge the code? Any pointers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看 jedtable-charcounter (http://www.appelsiini.net/projects/jeditable/jquery.jeditable.charcounter.js) 和 jeditable-autogrow (http://www.appelsiini.net/ items/jeditable/jquery.jeditable.autogrow.js),可以看到它们基本是一样的。
我认为你可以这样组合:
确保引用这两个插件。
然后你可以像这样调用 jQuery:
If you look at the source code for both jedtable-charcounter (http://www.appelsiini.net/projects/jeditable/jquery.jeditable.charcounter.js) and jeditable-autogrow (http://www.appelsiini.net/projects/jeditable/jquery.jeditable.autogrow.js), you can see that they're basically the same.
I think you can combine like this:
Make sure you reference both plugins.
Then you can call the jQuery like this: