A small Demo simulates real-time communication, which is mainly realized by socket.io framework (further encapsulation of websocket)
1. Environmental preparation:
1) Node.js environment – > download and install on the official website
2) socket.io.js file https://cdnjs.com/libraries/socket.io
3) Install the module ...
Added by crazyjeremy on Fri, 03 Apr 2020 22:39:39 +0300
My last article on vue is a little bit too long away from this one. It's finally finished recently.
Because I always want to write something with some achievements, rather than just a tutorial. Combined with the recent experience in the project and a little creativity.
First of all, what is this!
H5 live platform!
It's not a title. I've dev ...
Added by xangelo on Fri, 03 Apr 2020 22:27:59 +0300
First, ensure that these conditions are met:
Then install vue globally
cnpm install -g vue-cli
After installation, you can use vue -h to view the help documents of vue
vue -list view the templates supported by vue
What we will use next is webback
vue init webpack mall
The project name must be entered in English. I enter mal here
Added by phphead on Fri, 03 Apr 2020 18:20:20 +0300
Calling WeChat's scanning two-dimensional code function in js
js Call wechat scan function test
<!--Citing WeChat JS library-->
Added by iupme on Fri, 03 Apr 2020 14:52:29 +0300
The basic idea is:
1. When logging in, set session and cookie and a static variable to store the generated sessionId value;
2. Because the session life cycle is over when the browser is closed, we need to use cookie s to access the value of sessionId, and then set the value in the static variable map for later query
3. In the filter, you nee ...
Added by hmvartak on Thu, 02 Apr 2020 21:30:25 +0300
iOS open settings are relatively simple. You can use the Linking component to:
.catch(err => console.log('error', err))
1. Create the opensettings folder under the Android / APP / SRC / main / Java / COM / < ProjectName > / folder
2. In this folder, create the module file OpenSettingsModul ...
Added by Emperor_Jackal on Thu, 02 Apr 2020 20:45:53 +0300
Dva.js is a front-end framework based on react, Redux and webback developed by Alibaba front-end team. It can realize one click deployment of react Redux webback environment, which can save front-end engineers a lot of time in setting up the environment. And the optimized Redux is more convenient to use than the native redux. Let's talk about t ...
Added by PHP_apprentice on Thu, 02 Apr 2020 14:23:27 +0300
This is the rendering. It seems very simple. Have you been writing Jquery code for a long time, always thinking about DOM operation? I haven't switched over for a long time. Finally, Vue's attributes are used for control, and the function of multiple attribute selection is realized
Directly on the source code!
<!DOCTYPE htm ...
Added by safetguy on Thu, 02 Apr 2020 14:18:20 +0300
I always thought that the return value of timer was of Object type, so timer initialization also wrote null. Today, I found that the return value is number, although it's not harmful, but some of my friends see this sentence and change their understanding
I think it's good to use only set/clearInterval method. It can realize all the functions o ...
Added by drock on Thu, 02 Apr 2020 04:36:53 +0300
There are two ways to insert content into a component
demo using slot points to insert content into components
template:` <!--Back quotes are better than Quotes-->
<slot></slot> <!--If ...
Added by idweb on Thu, 02 Apr 2020 01:37:00 +0300