Lenix

Node calls the php interface, how does node.js access a php interface?

Yes, take GET request as an example var http = require(‘http’); var qs = require(‘querystring’); var data = { a: 123, time: new Date().getTime()};//This is the data that needs to be submitted var content = qs.stringify(data); var options = { hostname: ‘127.0.0.1’, port: 10086, path: ‘/pay/pay_callback?’ + content, method: ‘GET’ }; var req = …

Node calls the php interface, how does node.js access a php interface? Read More »

One-click generation of HTML applet for design drawings React Vue uni-app HTML code Web page cutting, automatic cutting

One-click generation of design drawings HTML applet React Vue uni-app HTML code web page cutting, automatic cutting … This article is reprinted from https://blog.p2hp.com/archives/8549 This site is for inclusion only, and the copyright belongs to the original author.

One-click generation of HTML applet for design drawings React Vue uni-app HTML code Web page cutting, automatic cutting Read More »

Wechat applet video playback, when wechat enters the background and then returns to the foreground, the live video stops playing and the problem is solved.

Add onpause=”this.play();” to the video tag. as follows <video playsinline autoplay controls style=”width: 1600px;height: 920px;” onpause=”this.play();” id=”videoid”></video> … This article is reprinted from https://blog.p2hp.com/archives/8540 This site is for inclusion only, and the copyright belongs to the original author.

Wechat applet video playback, when wechat enters the background and then returns to the foreground, the live video stops playing and the problem is solved. Read More »

ios WeChat comes with a browser, WeChat applet webrtc or video can not be automatically played (black screen) solution

Because the iOS version of WeChat browser just supports webrtc, there is only one news on March 10th that with the update of ios, the WeChat browser using wkwebview also supports webrtc, and there is no other useful information. Later, I saw a website that uses webrtc to support the ios version of WeChat browser,

ios WeChat comes with a browser, WeChat applet webrtc or video can not be automatically played (black screen) solution Read More »

Enter text by speech on web pages – Introduction to HTML5 Web Speech API Speech Recognition

         I mentioned the Web Speech API a long time ago , and now Chrome ‘s just released version 25 has support for this API for both desktop and Android , which is definitely a landmark event for web developers because we can Using speech recognition technology natively directly in Web Apps

Enter text by speech on web pages – Introduction to HTML5 Web Speech API Speech Recognition Read More »

uniapp develops an app, the status bar problem of the mobile phone blocks the problem, the uni app Liu Haiping adapts

Question: When using uniapp to develop a mobile app, because the application created by HBuildX is an immersive style by default, if the built-in navigation bar is removed, the page will go directly to the status bar at the top of the mobile phone. The solution is as follows: Method 1: Use the solution provided

uniapp develops an app, the status bar problem of the mobile phone blocks the problem, the uni app Liu Haiping adapts Read More »

uni app webview zoom page implementation

Add the following code in OnReady var wv; // #ifdef APP-PLUS console.log(‘App plus2’) var currentWebview = this.$mp.page.$getAppWebview() //Get the webview object of the current page setTimeout(function() { wv = currentWebview.children()[0] wv.setStyle({scalable:true}) }, 1000); //If it is a page initialization call, you need to delay it // #endif … This article is reprinted from https://blog.p2hp.com/archives/8520 This

uni app webview zoom page implementation Read More »