{"action":"created","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1341","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1341/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1341/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1341/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1341","id":103523787,"number":1341,"title":"初始化时，没有tableDnD方法","user":{"login":"linziguan","id":7079738,"avatar_url":"https://avatars.githubusercontent.com/u/7079738?v=3","gravatar_id":"","url":"https://api.github.com/users/linziguan","html_url":"https://github.com/linziguan","followers_url":"https://api.github.com/users/linziguan/followers","following_url":"https://api.github.com/users/linziguan/following{/other_user}","gists_url":"https://api.github.com/users/linziguan/gists{/gist_id}","starred_url":"https://api.github.com/users/linziguan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linziguan/subscriptions","organizations_url":"https://api.github.com/users/linziguan/orgs","repos_url":"https://api.github.com/users/linziguan/repos","events_url":"https://api.github.com/users/linziguan/events{/privacy}","received_events_url":"https://api.github.com/users/linziguan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-27T14:30:45Z","updated_at":"2015-08-31T09:21:18Z","closed_at":"2015-08-31T01:49:02Z","body":"```\r\nBootstrapTable.prototype.makeRowsReorderable = function () {\r\n        if (this.options.cardView) {\r\n            return;\r\n        }\r\n\r\n        var that = this;\r\n        this.$el.tableDnD({\r\n            onDragStyle: that.options.onDragStyle,\r\n            onDropStyle: that.options.onDropStyle,\r\n            onDragClass: that.options.onDragClass,\r\n            onDrop: that.onDrop,\r\n            onDragStart: that.options.onReorderRowsDrag,\r\n            dragHandle: that.options.dragHandle\r\n        });\r\n    };\r\n```\r\n在初始化时this.$el 没有tableDnD方法。造成脚本报错。\r\nTypeError: this.$el.tableDnD is not a function"},"comment":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/comments/136310936","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1341#issuecomment-136310936","issue_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1341","id":136310936,"user":{"login":"wenzhixin","id":2117018,"avatar_url":"https://avatars.githubusercontent.com/u/2117018?v=3","gravatar_id":"","url":"https://api.github.com/users/wenzhixin","html_url":"https://github.com/wenzhixin","followers_url":"https://api.github.com/users/wenzhixin/followers","following_url":"https://api.github.com/users/wenzhixin/following{/other_user}","gists_url":"https://api.github.com/users/wenzhixin/gists{/gist_id}","starred_url":"https://api.github.com/users/wenzhixin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenzhixin/subscriptions","organizations_url":"https://api.github.com/users/wenzhixin/orgs","repos_url":"https://api.github.com/users/wenzhixin/repos","events_url":"https://api.github.com/users/wenzhixin/events{/privacy}","received_events_url":"https://api.github.com/users/wenzhixin/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T09:21:18Z","updated_at":"2015-08-31T09:21:18Z","body":"实际代码为什么用不到？"}}