On the value passing problem of parent-child components of vue

Create three Vue components - index.vue (parent component), son1.vue (child component), son2.vue (child component) Set the path of the parent component in the router file (the child component does not need to set the route); Page conversions between parent and child components are not routed The parent component passes the d ...

Posted by ElectricShaka on Tue, 31 Mar 2020 00:25:28 -0700

JS accurately obtains parameters in URL URL

1. Get the entire URL string To get the parameters in the URL, first we need to get the entire URL string. We use: http://www.zhihua.com/wap/tmpl/member/member.html? Token = Zhihua as an example. ① Get (or set) the protocol part of the URL: window.location.protocol //window.location.protocol set or get the protoco ...

Posted by Maiku on Mon, 30 Mar 2020 23:07:04 -0700

8KW Dry Goods Tutorial | Reflective lecture on java

Reflection mechanism in java Catalog1. The concept of reflection mechanism2. Base Class of Reflection3. Usage of reflection4. Examples of applications of reflection Author's introduction: A stack of learning notes, a person working hard The concept of reflection mechanism: In the run state, all the properties and methods of this class can be ob ...

Posted by brianlange on Sun, 29 Mar 2020 20:44:53 -0700

IoC container initialization of spring framework

Analysis example Startup class Application, using ClassPathXmlApplicationContext to load xml files /** * @author jianw.li * @date 2020/3/16 11:53 PM * @Description: TODO */ public class MyApplication { private static final String CONFIG_LOCATION = "classpath:application_context.xml"; private static final String BEAN_NAME = "hello"; ...

Posted by eagleweb on Sun, 29 Mar 2020 09:48:58 -0700

Object expansion

Object expansion Object development review: Object literal, object deconstruction, three dot operators Object name attribute Object's method name attribute, but there are two special attribute methods. 1. If it is a property method, it is obtained through the property object. // / / object // let obj = { // demo() {}, // //Characteristi ...

Posted by boby on Sun, 29 Mar 2020 03:05:58 -0700

Wechat app learning notes music player (playlist)

Wechat applet learning notes (VIII) music player (playlist) The playlist defaults to the first song. Click the recommended songs to add songs to the playlist for playing. When adding songs to the list, if the user clicks the same song, it will not be added to the list, but will play directly. Therefore, when adding songs to the list, you need ...

Posted by flashicon on Sat, 28 Mar 2020 09:17:05 -0700

C × basic knowledge series - 3 set array

Let's briefly introduce the collection. Generally speaking, it's a scheme used to store multiple data. For example, we are a company's warehouse management. The company has a lot of goods that need to be managed. There are similar goods and different kinds of goods. In a word, they are many and messy. If we manage the warehouse according to th ...

Posted by trooper on Fri, 27 Mar 2020 05:51:47 -0700

Three methods of JS array de duplication

Thank you for your reference- http://bjbsair.com/2020-03-27/tech-info/7084/ There are many ways of array de duplication. Let's take out three simple ways to learn; 1. Double FOR loop (compare the current item with each of the following items, focusing on the optimization of array collapse and split deletion) 2. Key value pairs of objects 3.in ...

Posted by bharanikumarphp on Fri, 27 Mar 2020 03:56:00 -0700

Python3 Standard Library: xml.etree.ElementTree XML Manipulation API

1. xml.etree.ElementTree XML Manipulation API The ElementTree library provides tools for parsing XML using event-based and document-based API s, searching for parsed documents using XPath expressions, and creating new documents or modifying existing ones. 1.1 Parsing XML documents Parsed XML documents are represented in memory by ElementTree an ...

Posted by bobc on Thu, 26 Mar 2020 20:48:03 -0700

Polymer1.0 listens for changes in property values

If you need to listen for property value changes, you can assign a callback function to observer. <say-Hello></say-Hello> <dom-module id="say-Hello"> <template> <h1>{{say}}</h1> </template> </dom-module> <script> Polymer({ is:'say-Hello', properties:{ say:{ t ...

Posted by phpvolution on Thu, 26 Mar 2020 10:21:58 -0700