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

.
Menu