Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我试过这个:
$(function(){ var descr = $("#area").htmlarea(); }); $("#some_button").click(function(){ descr.pasteHTML("some text"); });
这不行!我能怎么做 ??谢谢!!
是的,这有无穷无尽的解决方案……给我们更多细节。我的两个猜测:
Are you including jQuery and the plugin js file?
Try wrapping all your code around the $(function(){