layui重載報Layui hint: The ID option was not found in the table instance

重載語法html

table.reload(ID, options)ui

參數 ID 即爲基礎參數id對應的值,見:設定容器惟一ID
參數 options 即爲各項基礎參數htm

tableIns.reload(options)對象

對象 tableIns 來源於 table.render() 方法的實例
參數 options 即爲各項基礎參數get

 

例:io

var $table = table.render({table

            ....容器

})基礎

用$table來重載,而不是用table來重載module

$table.reload({

           ...

})

相關文章
相關標籤/搜索