Home  >  Article  >  Web Front-end  >  How to cancel cross-domain in uniapp

How to cancel cross-domain in uniapp

coldplay.xixi
coldplay.xixiOriginal
2020-12-15 16:36:484299browse

How to cancel cross-domain uniapp: First create [uni-app] and configure the access proxy; then create a new page file and insert tag elements; then call the encapsulation method; finally save the preview for viewing.

How to cancel cross-domain in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, Dell G3 computer.

How to cancel cross-domain uniapp:

1. In the opened HBuilderX tool, create uni-app and open it

How to cancel cross-domain in uniapp

2. Open the manifest.json file in the project and find the specific configuration

How to cancel cross-domain in uniapp

##3. Switch to the source code view and add an h5 and devServer

How to cancel cross-domain in uniapp

4. Open the newly created page file and insert the tag element

How to cancel cross-domain in uniapp

5. In the methods method, define the function buildData, Then call

uni.request()

How to cancel cross-domain in uniapp

6, save the code and compile it, open the WeChat development tool, and check the effect


How to cancel cross-domain in uniapp

Related free learning recommendations:

php programming (video)

Recommended (free):

uni -app development tutorial

The above is the detailed content of How to cancel cross-domain in uniapp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn