请检查此代码:http: //jsfiddle.net/rkumarnirmal/Rq7b2/2/
我正在做的是显示一些文字。如果单击文本,则列表将与 Jscrollpane 一起显示。但是这里显示了列表并且没有显示 jscrollpane。
我在那里犯了什么错误?谁能帮助我?
谢谢!
请检查此代码:http: //jsfiddle.net/rkumarnirmal/Rq7b2/2/
我正在做的是显示一些文字。如果单击文本,则列表将与 Jscrollpane 一起显示。但是这里显示了列表并且没有显示 jscrollpane。
我在那里犯了什么错误?谁能帮助我?
谢谢!
当内容改变时你必须重新调用它,
You can set the JScrollPane to auto-reinitialize.
http://jscrollpane.kelvinluck.com/settings.html
autoReinitialise - boolean (default false)
Whether jScrollPane should automatically reinitialise itself periodically after you have initially initialised it. This can help with instances when the size of the content of the scrollpane (or the surrounding element) changes. However, it does involve an overhead of running a javascript function on a timer so it is recommended only to activate where necessary. Demo.