Usage Summary of Python pyppeter module

I. simple code example import asyncio from pyppeteer import launch async def main(): browser = await launch() page = await browser.newPage() #Open a new page await page.goto('https://www.baidu.com / ', visit Baidu await page.screenshot({'path': 'baidu.png'}) #Screenshot and store await browser.close() asyncio.get_event ...

Added by danielson2k on Mon, 02 Dec 2019 15:30:10 +0200

Template engine jade (pug)

Template engine compiled into html static js css node: jade is also called pugForced line wrapping is not allowed in jade Download jade first cnpm install jade One: how to use jade to parse strings const jade =require('jade'); var str=jade.render('html');//Render string console.log(str); Parse string How to use jade to parse ...

Added by Heywood on Mon, 02 Dec 2019 06:23:57 +0200

The use of submit bar component in Vant Weapp

This paper introduces some problems that should be paid attention to when using the submit bar component in the development of Vant Weapp applet. Pit to pit, first on the sample code bar, from simple to complex order. main.js code main.json code index.vue code <template> <view> <van-panel title="Basic usage"> &l ...

Added by joeysarsenal on Sun, 01 Dec 2019 19:46:46 +0200

Java steam API exercise (flow creation, flow operation, flow termination)

Exercises 1 Given a list of numbers, how can I return a list of the squares of each number? , given [1, 2, 3, 4, 5], it should return [1, 4, 9, 16, 25] public class Problem1 { public static void main(String[] args) { // TODO Auto-generated method stub List<Integer> list1 = Arrays.asList(1,2,3,4,5); List<Intege ...

Added by kincet7 on Sun, 01 Dec 2019 16:29:10 +0200

Python learning: object oriented -- member modifier

Member modifier Two members - public member - private member, field name - cannot directly access, only indirectly access private members through internal methods For example: public member and private member class Info: country = 'China' # Static field __gender = 'male' # Static field privatization def __init__(self,nam ...

Added by mohson on Sun, 01 Dec 2019 03:24:35 +0200

XML parsing of java (DOM4J Technology)

Parsing XML file with DOM4J Technology I. Introduction to XML xml (Extensible Markup Language)Extensible meaning: allows programmers to extend new tags according to their own ideasNote: but when extending, you must follow the XML specificationSecond, the characteristics of xml:Self description,It can support cross platform,Retains the hierarchy ...

Added by e39m5 on Sun, 01 Dec 2019 03:14:51 +0200

Sorting out the learning notes of React beginner -- events

1. Event definition The name of the React event binding attribute is written in camel style, not lowercase. If you use JSX syntax, you need to pass in a function as an event handler instead of a string Define the function in the class component and call it by this. Function name class GreateH extends React.Component{ static defaultProps = { ...

Added by mdj on Sun, 01 Dec 2019 01:36:31 +0200

get request of axios - Code section

get method request of vue + elemetUI + axios bug code example: I. < script > · some codes data() { return { resumes :[], xss: [], dialogShareFormVisible: false, // Pop up box: new share will not be displayed by default } }, // =========================================================== ...

Added by Brink Kale on Sat, 30 Nov 2019 07:44:43 +0200

Exercise: object oriented

1. Create an Auto class, including the number of tires, car color, body weight, speed and other attributes, and create instances through different construction methods. At least the car should be able to accelerate and slow down Another car class, CarAuto, inherits Auto, adds air conditioning and CD attributes, and re implements methods to cove ...

Added by catnip_uk on Thu, 28 Nov 2019 14:53:11 +0200

Advanced iOS Core Animation Techniques-5

9. Layer Time Layer Time The biggest difference between time and space is that time can't be reused--Forster Merrick In the previous two chapters, we explored a variety of layer animations that can be implemented with CAAnimation and its subclasses.Animation takes place over a period of time, so timing is critical to the whole concept.In thi ...

Added by TGWSE_GY on Thu, 28 Nov 2019 08:46:23 +0200