這可能是Custom Resizable Handles in JQuery UI的複製,而是把手不是可調整大小的元素的子元素後的會談,沒有關係」 t指定jQuery UI的哪個版本。穩定v1.9.0 jQuery UI的調整大小手柄VS傳統1.8.24
的API指出,自定義手柄可以如下定義:
The following keys are supported: { n, e, s, w, ne, se, sw, nw }. The value of any specified should be a jQuery selector matching the child element of the resizable to use as that handle.
在我的代碼,手柄是可調整大小的元素的子元素,jQuery的如下:
$("#searchbar_container").resizable({
handles: {w: '#searchbar_handle_top'},
maxWidth: 445,
minWidth: 20,
start: function(event, ui) {},
stop: function(event, ui) {
$("#searchbar_container").css('height', '');
}
});
我可以得到它與傳統版本的jQuery UI(1.8.24):link ...但與jQuery UI(1.9.0)的「穩定」版本和完全相同的代碼沒有關係: link。這兩個頁面使用相同版本的jQuery核心(1.8.2)。
jQuery用戶界面的穩定版本產生以下控制檯錯誤:
Uncaught Error: Syntax error, unrecognized expression: , jquery-1.8.2.min.js:2
有誰覺得我上來的錯?
乾杯
爲此打開了哪張門票? –
我見過的唯一報告涉及XHTML 5([here](http://bugs.jqueryui.com/ticket/8639)) – RustyTheBoyRobot
謝謝大衛。我將堅持使用舊版本。順便說一下,我發現一些參數在1.9.0中工作,例如maxWidth,minWidth和其他一些參數(我沒有測試過它們),但arg句柄肯定是壞的。如果我有機會,我會爲它提一個jQuery票據。 – pinksy