提交 0af6840c 编写于 作者: C Catouse

* fix error in datatable.

上级 22ccea36
......@@ -1010,7 +1010,7 @@
return !(result !== undefined && (!result));
};
$.fn.datatable = function(option)
$.fn.datatable = function(option, newData)
{
return this.each(function()
{
......@@ -1020,7 +1020,7 @@
if (!data) $this.data(name, (data = new DataTable(this, options)));
if (typeof option == 'string') data[option]();
if (typeof option == 'string') data[option](newData);
});
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册