JavaScript development must master skills - better use of jQuery attr method

The previous several articles are all long speeches. It's really a bit hard to read them all at once. Today, I'd like to share a skill of using attr() in development. Maybe we haven't used it like this. It works with the template string module in the ES6 standard. Let's take a look at the template string and its use: // Conventional JavaScript ...

Posted by tomwerner on Tue, 14 Apr 2020 09:25:46 -0700

wx.request(Object object) HTTPS network request encapsulation

Wechat applet wx.request RequestTask wx.request(Object object) initiates an HTTPS network request. Sample code wx.request({ url: 'test.php', //Example only, not real interface address data: { x: '', y: '' }, header: { 'content-type': 'application/json' // Default value }, success (res) { console.log(res.data) } }) ...

Posted by Ab on Tue, 14 Apr 2020 07:52:30 -0700

Use of LocalDateTime in the project (LocalDateTime docking front end interacts with timestamp, LocalDateTime docking database)

Catalog 1. Blog writing background 2. LocalDateTime front-end interaction 2.1 LocalDateTime writes a timestamp to the front end 2.1.1 fastJson default write format 2.1.2 Change the fastJson write format so that it writes back the timestamp () 2.2 Receive the time stamp passed by the front end as LocalDateTimme 2.2.1 LocalDateTime Default ...

Posted by haddydaddy on Mon, 13 Apr 2020 18:47:43 -0700

A python instance of adding log processing module

The log module is essential in a complete project. When encountering system error in work, it is also the first time to check the error log on the server (ps. even if you can't understand it, you will copy the error part as a bug attachment) Here is an example of using weather interface API to query weather. Let's talk about how to add log mod ...

Posted by carmasha on Mon, 13 Apr 2020 07:07:36 -0700

Generation and use of qt plug-in Plugin

Sketch Sometimes, when we are making an application, we don't want the software we generate to be just an EXE file, but to split it into modules, the finer the better. In the future, it is very convenient to release updates. We only update a small part of them, not the whole application. (let's look at the code.) Plug-in generation ...

Posted by tarleton on Sun, 12 Apr 2020 08:55:32 -0700

Thrift notes - basically thrift knowledge

thrift is similar to socket in java and communication between server and client in sockchannel The most important thing about thrift is cross language, which provides methods such as serialization and deserialization, json and entity objects The Apache Thrift software framework (for extensible cross language service development) combines t ...

Posted by therealchuckles on Sun, 12 Apr 2020 08:31:08 -0700

One of webpack learning, basic use and management of resources

Learning is in the Chinese web pack, just this record for later review; (https://doc.webpack-china.org/guides/getting-started/#-) Write before: I think there are four basic modules of webpack that I should know before learning: 1. Entrance 2. Export 3.loader 4. Plug-ins I. Basic Use Follow the steps ...

Posted by dineshsjce on Sat, 11 Apr 2020 09:37:56 -0700

vue search page development (hot search, historical search, Taobao interface demonstration)

Full effect demonstration   Complete the pseudo search box first src/components/search/index.vue (general search box component) <template> <div class="mine-search-box-wrapper"> <i class="iconfont icon-search"></i> <div class="mine-search-box" v-if="fake">{{placeholder}}</div> <input ...

Posted by Lagreca on Sat, 11 Apr 2020 07:46:12 -0700

Crawling epidemic data and previewing with Markdown

Friday is not sleepy. I wrote a Python script with simple functions: get Sina's epidemic data about each country, write it into md file and preview it, get the data regularly, and generate new markdown content at the end of the file if there is new data. 1, Code Because the function and code are very simple, go directly to the code # -*-codin ...

Posted by vornn on Sat, 11 Apr 2020 07:45:44 -0700

Python solves the slider verification, and the Scarpy framework collects data to the redis database!

Catalog Architecture introduction Installation creation and startup Profile directory introduction Crawling data and parsing Data persistence Save to file Save to redis Action chain, verification code to control sliding   Architecture introduction Scrapy is an open-source and collaborative framework, which was originally designed for page ...

Posted by cigardude on Sat, 11 Apr 2020 00:36:08 -0700