JavaScript learning notes DOM

Chapter 5 Web page interaction - Document object model 1 briefly introduce DOM, which is a tool to interact html with javascript. [note when using innerHTML: the content in html is loaded according to the order of HTML itself. Therefore, js corresponding code should be placed after HTML] Question: * when document.getelementby id does not exist, ...

Posted on Fri, 06 Dec 2019 06:11:15 -0800 by littlejones

Independent access to alicloud IoT platform (Java) based on open source MQTT

By GXIC wongxmig Finish, welcome to follow IoT developer community. 1. Preparation 1.1 register alicloud account Use personal Taobao account or cell phone number to open the account of Ali cloud, and pass the real name authentication (can be certified by Alipay). 1.2 free IoT Suite Product official website https://www.aliyun.com/product/iot 1 ...

Posted on Fri, 06 Dec 2019 02:52:32 -0800 by chris_rulez001

Responsive data of vue source code analysis series

Summary When using vue, data, computed and watch are some commonly used concepts. How do they implement them? Let's start with a small demo to analyze its process. Demo demo snippet html code <!DOCTYPE html> <html> <head> <title>demo</title> <script src="../../dist/vue.js"></script> </hea ...

Posted on Thu, 05 Dec 2019 23:08:53 -0800 by atoboldon

Using jQuery to dynamically set the selection of radio box

I. Effect to be achieved This is implemented using jQuery. The effect to be achieved is as follows: when the pull-down bar changes, the value selected in the radio box changes accordingly. <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Dynamic setting radio box selection</title ...

Posted on Thu, 05 Dec 2019 20:49:51 -0800 by Gillesie

Python metaclasses and enumeration classes

Category 1 1. The type() function can return the type of the object or create a new type. It can change the behavior of class creation and realize dynamic class creation. # First parameter: class name # Second parameter: ancestor of parent class # The third parameter: property, method A = type("A",(object,),{"name":"zhou"}) a = A() print(type(A ...

Posted on Thu, 05 Dec 2019 19:36:14 -0800 by zenon

Ognl Usage Example Manual

The last blog post introduced the basic syntax of ongl, and we'll move on to the actual usage section, where we'll combine some actual case s to demonstrate just how far ognl can support Before reading this article, it is strongly recommended that you familiarize yourself with what ognl is and its grammatical features, reduce reading disabilit ...

Posted on Thu, 05 Dec 2019 17:06:20 -0800 by forsooth

Sortable.js drag and drop sorting plug-in

Sortable.js is a lightweight JS plug-in for drag and drop sorting lists 1. install $ npm install sortablejs --save 2. use Navigate to the objects to be sorted, create Sortable objects and add response configuration settings You can do this by: var sortable = Sortable.create(el, {}) or var sortable = new Sortable(el, { ...

Posted on Thu, 05 Dec 2019 12:37:03 -0800 by broc7

Quanzhi A64 linux writes LED driver through device tree (with reference code)

Development platform xinlingsi Sinlinx A64 Memory: 1GB storage: 4GBDetailed parameters https://m.tb.cn/h.3wMaSKmDevelopment board exchange group 641395230 The structure of equipment tree of Quanzhi A64 #Include < Linux / of. H > / / each device in the device tree and each device sub node are described with this structure struct device_no ...

Posted on Thu, 05 Dec 2019 06:55:48 -0800 by nrussell

Basic usage of scratch

Install scrapy Different operating systems are installed and operated differently. You can directly see the official documents Install Scrapy Create a project Enter at the command line scrapy startproject tutorial Enter the project directory to create a spider cd tutorial scrapy genspider quotes domain.com import scrapy class QuotesSpider(scra ...

Posted on Thu, 05 Dec 2019 02:01:05 -0800 by trink

How much do you know about shallow and deep copies of Java?

This is a point of knowledge that we are discussing in the technical group today. The discussion is quite intense. Because there is less use of this area, there are some blind spots in this area.This article summarizes what has been discussed and hopefully this article will help you. In Java development, object copy or object cloning is a commo ...

Posted on Wed, 04 Dec 2019 23:55:25 -0800 by spyderman