Issue5824: fix api difference between h5 and jsb