vue project preparation and skeleton construction

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

Calling WeChat's scanning two-dimensional code function in js critical code <html> <head> <title> js Call wechat scan function test </title> <!--Citing WeChat JS library--> <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></scrip ...

Added by iupme on Fri, 03 Apr 2020 14:52:29 +0300

java interceptor + cookie+session to realize N-day login free

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

React native opens the setting interface

iOS iOS open settings are relatively simple. You can use the Linking component to: Linking.openURL('app-settings:') .catch(err => console.log('error', err)) Android 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

Summary of usage of dva.js

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

Vue shopping cart instance

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! index.html <!DOCTYPE htm ...

Added by safetguy on Thu, 02 Apr 2020 14:18:20 +0300

BOM experience - timer

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

Vue inserts content into components

There are two ways to insert content into a component Drawback Sub components     demo using slot points to insert content into components   Vue.component('Parent',{ template:` <!--Back quotes are better than Quotes--> <div> <p>hello</p> <slot></slot> <!--If ...

Added by idweb on Thu, 02 Apr 2020 01:37:00 +0300

Using javascript to realize simple message board

A simple message board made of native js. It has the following functions: 1. Input the text message in the input box; 2. Display the message on the message board; 3. Delete the message. html and css code: 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <style> 6 *{mar ...

Added by prasad_deba on Wed, 01 Apr 2020 20:18:54 +0300

[front end statistical chart] echarts to realize single line chart

Five minutes to start: Picture.png <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Line chart in five minutes</title> <!-- Introduce echarts.js --> <script src="js/echarts.min.js"></script> <script src=" ...

Added by nomadrw on Wed, 01 Apr 2020 18:58:56 +0300