Tag:Purple smoke

  • Vue basic introductory notes 06: todo list demo, some(), findindex()


    Vue basic introduction notes 06 Simple addition, deletion and retrieval <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <meta http-equiv=”X-UA-Compatible” content=”ie=edge”> <title>Document</title> <script src=”https://cdn.jsdelivr.net/npm/vue”></script> <!– The latest version of bootstrap core CSS file — > <link rel=”stylesheet” href=”https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css” integrity=”sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=”anonymous”> </head> <body> <div id=”app”> <div class=”panel panel-primary”> <div class=”panel-heading”> < H3 class […]

  • Set styles for body and HTML separately in Vue component


    Today, I encountered that setting the background color for the body of a single component does not work because each component style only works in the div of that template, so I use the following aspects to make a fake body for this page. The code is as follows <template> <div class=”body-bg”></div> </template> <style scoped […]

  • Vue constant definition and use


    How to define constants in different environments for Vue projects built with Vue cli 3. X? Click on the defined global base_ URL example Under config / dev.env.js ‘use strict’ const merge = require(‘webpack-merge’) const prodEnv = require(‘./prod.env’) module.exports = merge(prodEnv, { NODE_ENV: ‘”development”‘, BASE_ URL:'” http://localhost:8080 “‘// defined here }) Similarly, config / prod.env.js […]

  • WeChat official account develops 1: Laravel 5.7 + we-vue + vue-router build


    WeChat official account develops 1: laravel 5.7 + we-vue + vue-router build After a period of Vue learning, I began to try to use Vue as a project to reconstruct the company’s registration system. After an afternoon’s investigation, I intend to use we Vue as the Vue front-end framework for me to start this program […]