How to call mock data in Umi

Official website According to the official website, you can download it by executing yar create umi or npm create umi. After that, select: the space is select enter is OK Select project = > select app Choose whether to use TypeScript. Then, select the function you need = = > antd + DVA OK, the bas ...

Posted by secret007 on Fri, 01 Nov 2019 20:58:52 -0700

The implementation of golang / creator js uses protobuf for data interaction

protobuf is a general rule of data serialization, which is faster and smaller than xml and json. This time, proto 3 is used. 3 has some features different from 2. For example, 3 defaults to the optional declaration. All fields are optional assignments, so as to be compatible with the fact that s ...

Posted by BrentNorin on Fri, 01 Nov 2019 20:09:04 -0700

Cook a delicious CLI

At the beginning, I really want to write a recipe, because of the limited cooking ability, so the title is a lie, ha ha^_~ Today, let's talk about the development of command-line tools (CLI: command-line interface, which will replace the long command-line tool terms with CLI). After reading this article, you will have a more comprehensive un ...

Posted by buducom on Fri, 01 Nov 2019 05:32:51 -0700

[Vue] zero basic learning Vue: Lesson 26 how to get $refs from the label element node in Vue:

  ref="Definition label named " this.$refs.Tag name //Get the corresponding label element this.$refs //Get all defined tags First, we use code to simply get a tag: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ref Get node</title> <!-- ...

Posted by kazer on Fri, 01 Nov 2019 04:13:31 -0700

Smartour - make web navigation easier

When the content of a web page is greatly adjusted, it often needs a navigation function to tell users that a certain function has been adjusted to another location. The normal way is to add a mask, highlight the adjusted area, and then use the text to complete the guidance. We call this function "guide", while Smartour pulls out the ...

Posted by AshtrayWaterloo on Fri, 01 Nov 2019 02:39:42 -0700

(17) playing chicken teaches you Vue.js

vue-router <a class="list-group-item" v-link="{ path: '/home'}">Home</a> <a class="list-group-item" v-link="{ path: '/about'}">About</a> /* Create router */ var router = new VueRouter() Create component: <script src="js/vue.js"></script> <script src="j ...

Posted by jikishlove on Thu, 31 Oct 2019 07:58:48 -0700

Work on a vue project with me

Next, we will configure the route of the city selection page. Add city.vue, click on the city, and then jump to the city page //router.js import Vue from 'vue' import Router from 'vue-router' import Home from '@/pages/home/Home' import City from '@/pages/city/City' Vue.use(Router) // Export a set of routing configuration items export default n ...

Posted by kotun on Wed, 30 Oct 2019 13:52:34 -0700

Nuxt.js + Axios + element UI project construction, and submit the project to Gitee

Article directory Create nuxt.js project nuxt.js directory structure Integrate element UI and Axios Add: push local projects to Gitee Create nuxt.js project Install Vue cli npm install -g vue-cli --registry=https://registry.npm.taobao.org Execute under project directory vue init nuxt/starter &l ...

Posted by TheHaloEffect on Wed, 30 Oct 2019 10:02:24 -0700

Webassembly practice - rust to wasm

target Using the existing lib - blake2b-simd of rust, js callable tool class functions are generated. Avoid the resource consumption caused by using js to translate the rust code. Environmental Science Rustc rustup cargo (development and compilation tool of rust Lang) nodejs (publish the package generated by wasm pack) Install wasm pack carg ...

Posted by Fearpig on Wed, 30 Oct 2019 07:01:55 -0700

Implement a calendar component from zero

I. Introduction to calendar components The calendar component is mainly composed of a text input box. After clicking the text input box, the calendar panel will be displayed below the text box. The calendar panel consists of three parts: the head area (which mainly displays the month and year corresponding to the face-to-face calendar panel and ...

Posted by jaikob on Tue, 29 Oct 2019 05:06:20 -0700