Value transfer of components in vue

Pass value from parent component to child component This is the first code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Hello World</title> <script src="vue.js" type="text/javascript" charset="utf-8"></script> <script src="jquery-3.3.1.min.js" ...

Added by Hellomonkey on Wed, 01 Jan 2020 17:53:46 +0200

Reach advanced routing and parameters

  1. Installation depends on the latest version by default npm i react-router react-router-dom --save-dev 2. Import main component object import {BrowserRouter as Router,Route,Link,Redirect} from 'react-router-dom'; 3. The writing structure is inside the component and does not need to be written in the render. The Router ...

Added by philwong on Wed, 01 Jan 2020 12:08:12 +0200

flask tool to build automatic test platform 9-order application

9 - ordering application Main contents: bootstrap Account management image.png The latest version of this article bootstrap Bootstrap is an open source framework from Twitter, which provides user interface components to create simple and attractive web pages and is compatible with all current web browsers. reference materia ...

Added by Cell0518 on Tue, 31 Dec 2019 10:33:50 +0200

jquery application - find element correlation (selector);

Child element selector: // Big premise: all the selected ones are used to decorate Div. is div the first child of its parent element (without limitation)? Is it the last child? Is it the index child? Is it the only child? $('div:first-child') // Match all div s that are the first element $('div:last-child') // Mat ...

Added by johnnyboy16 on Mon, 30 Dec 2019 19:38:35 +0200

jquery implements horizontal tabs. When you slide tabs, the content slides left and right

Recently wrote an e-commerce website, to be compatible with ie8. Therefore, jquery is not used for a long time. Writing an effect can hurt your brain.   Horizontal tab, the content slides left and right when sliding tab   First, html code <div class="container"> <div class="tabs-box"> <a class="active ...

Added by catalin.1975 on Thu, 26 Dec 2019 21:02:55 +0200

Getting started with Vue.js: making a minimalist to do application from scratch

Writing time: December 10, 2019Version information: Vue.js 2.6.10Official documents: https://cn.vuejs.org/ Preface One of the best ways to learn about Vue is "check out Vue.js's Official documents Take a look at the "basic" part. It's better to eat with this article. Before you start writing code, first go BootCDN Find the link ...

Added by pandu345 on Wed, 25 Dec 2019 11:49:21 +0200

canvas adaptive width height

Background: Csnvas cannot set width and height in style, which stretches the entire csnvas. You need to set the attributes width and height to control width and height, so that the value is written dead and cannot automatically adapt to the screen size. Solution: Set the top, bottom, left and right outer margins and inner m ...

Added by offdarip on Mon, 23 Dec 2019 22:40:17 +0200

Bootstrap Table plug-in implements fixed left column

Bootstrap Table plug-in itself does not have fixed column function, and additional reference is required Bootstrap table fixed columns.css and bootstrap table fixed columns.js However, after referencing these two files, sometimes the columns are not aligned, and the effect of js is good The complete code is as follows: <link rel="sty ...

Added by garcon on Mon, 23 Dec 2019 20:55:37 +0200

Operations on mouse events in jquery

Some operations about mouse events in jquery are as follows: 1. Click to add the event click(): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" conte ...

Added by aniesh82 on Sat, 21 Dec 2019 18:48:54 +0200

Get the external HTML of the selected element

I'm trying to get the HTML of the selected object using jQuery. I know the. html() function; the problem is that I need the HTML that contains the selected object (in this case, the table row, where. html() returns only the cells in the row). I searched around and found some cloned objects, added them to the newly created div and other very ...

Added by fohanlon on Thu, 19 Dec 2019 19:12:58 +0200