H5 applies how to pass reference parameters.

    The
  1. project is an H5 App, framework that uses mui. We have a time-consuming piece of code ( plus.android.runtimeMainActivity (); ) that returns a InstanceObject object that most pages later in the project need to use when loading.
  2. We plan to create this object on the first page, and the later pages get the object created by the first page in various forms, but many attempts are unsuccessful.
  3. methods that have been tried:
    mui.fire ();
    localstorage
    mui.evalJs ()
    these methods can only get the value of the object, but there are no references, so there is no way to call the method of this object
Oct.19,2021

this object should be saved by Native, and then provide an interface to H5 to get

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a809-4ee82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a809-4ee82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?