uni-app uses external .js files to define global variables and global methods

1. Define public methods in the common file
Insert picture description here

2.1 Import the util-MD5.js file
Insert picture description here
2.2 Use the method in util-MD5 in quickpay
Insert picture description here
Reference: Click to view the original work

Guess you like

Origin blog.csdn.net/weixin_45663264/article/details/111660857