您好,在您的Demo中对table的筛选重置一下既可:
- document.getElementById('FilterfromJSON').addEventListener('click',function () {
- sheet.suspendPaint()
- table.rowFilter().reset()
- var filterjson=document.getElementById("stateText").value;
- console.info(JSON.parse(filterjson));
- table.rowFilter().fromJSON(JSON.parse(filterjson));
- sheet.resumePaint()
- });
复制代码 |