|
如题
我把淘宝案例的整个排序PopOver都复制到我的项目中,把代码也复制了过来,调试的时候出现cannot read property '$domNode' of null 何解!!!又要求助了~~
- /* 选择排序按钮 */
- Model.prototype.sortingBtnClick = function(event) {
- if ($(this.comp("sortingPopOver").$domNode).css("display") == "block") {
- this.comp("sortingPopOver").hide();
- } else {
- this.comp("sortingPopOver").show();
- }
- if ($(this.comp("screeningPopOver").$domNode).css("display") == "block") {
- this.comp("screeningPopOver").hide();
- }
- };
- /* 选择排序 */
- Model.prototype.sortingListClick = function(event) {
- /*
- * 1、排序点击事件 2、修改当前排序 3、关闭排序窗口
- */
- var data = this.comp("conditionData");
- data.setValue("fState", "0", data.find([ "fState" ], [ "1" ], true, true, true)[0]);
- var row = data.getCurrentRow();
- data.setValue("fState", "1", row);
- this.comp("sortingBtn").set("label", data.getValue("fName", row));
- this.comp("sortingPopOver").hide();
- };
复制代码
|
|