Picture display problem obtained by WeChat jssdk interface

PHPz
Release: 2017-04-04 11:33:18
Original
2798 people have browsed it

I have been studying the development of this WeChat public platform in the past few days
I am using chooseImageInterfaceCalled to obtain thepicturebut it was never displayed. Some posts on Baidu did not turn out very well. Later, I finally figured out how to display it. Now I write it down. Make a backup

Some problems encountered when using WeChatJSDK
When configuring the S interfacesecuritydomain name, you need to use the first-level domain name. You cannot Use a second-level domain name, and cannot bring http or https
For example, in my testUploadimage URL is

applinzi.com


//html里的主要代码  上传图片的测试 图像接口 拍照或从手机相册中选图接口  图片预览 

//js里的主要代码
Copy after login

The above is the detailed content of Picture display problem obtained by WeChat jssdk interface. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!