总的来说,可执行() 工作罚款。 在这方面,我正在讨论一个问题。
- I have a div that contains some resizable items that work fine (resizable() applied to them at some point).
- user can save items for later view (the innerHTML of the div gets saved into a JavaScript array, then div gets cleared so they can do something else)
- When items get placed back onto div (from array) -- I do a $( #divname ).append(arrayname[i]); -- items are no longer resizable (although visually they have the resizable classes/handle on them)
这里是我迄今为止所尝试的(其中没有工作):
- After append() line, I re-initialize the resizable -- $( #items ).resizable();
- After append() line, remove then re-add resizable -- $( #items ).resizable( destroy ).resizable();
感谢任何帮助。