The application discloses a
web page and native application
interaction method, an electronic device and a computer storage medium. The
web page and native application
interaction method comprises the following steps: when a
web page is loaded, a
web container is created based on web page configuration information; the web page loads a preset bridge file into the
web container; a native application injects a native function into the preset bridge file; the web page calls the native function by using a method defined by the preset bridge file; the native application performs adaptive
processing on the native function called by the web page; and the native application calls back the web page based on the native function after the adaptive
processing. In this way, the web page developed by different technologies can interact with the native application in a unified manner, so that
code redundancy is reduced, maintenance is simplified, and cost is reduced.