The principle and use of SEL

concept SEL: method name (number)IMP: a function pointer that holds the address of the method@Selector (method name) gets the number of the method, resulting in SEL type. His behavior is basically equivalent to the function pointer in C languagedifference In C language, the function name can be assigned directly to a function pointer, and the f ...

Added by rinjani on Fri, 26 Jun 2020 06:08:56 +0300

nextTick's practice in the project

preface In a project, it is often necessary to display data at the view level immediately. Sometimes, because of asynchronous data transfer, the page will not be displayed immediately on the page. In this case, you need to use the nextTick method provided by Vue. The main reason is that Vue's data vi ...

Added by ivki on Thu, 25 Jun 2020 14:18:22 +0300

269 JavaScript utility functions to improve your work efficiency

130.blob to file  /**     *  @param { blob } blob     *  @param { string } fileName        */    export const blobToFile = (blob, fileName) => {     blob.lastModifiedDate = new Date();     blob.name = fileName;     return blob;     }; 131.file to base64  /**     * @param { * } file Picture file       ...

Added by Mikester on Mon, 15 Jun 2020 08:00:19 +0300

Logue P3796: AC automaton template (enhanced)

2020.6.13 This paper borrows @ hyfhaha's idea of problem solving. The day before yesterday, I went back to school to see my teacher. They were all the same. They didn't change at all. The teacher was also very happy to see us. He left us to study at night and then let us go. A-Level class asked cs about ...

Added by iamtom on Sat, 13 Jun 2020 07:40:35 +0300

Graphic io+BIO+NIO+AIO+Netty + chat room practice

The beginning of 2020 is extraordinary. I will stay at home and study io again io is divided into bio,nio,aio Among them, netty belongs to nio, and aio has not been widely used, so it has great potential in the future Understand several concepts Synchronous and asynchronous Blocking and non blockingio m ...

Added by PW on Wed, 10 Jun 2020 06:42:48 +0300

How to use WillPopScope in Flutter

Guide reading for Lao Meng: how to click the Back button twice to exit the App, how to realize multiple routes in the App, and how to realize the Back button only to exit the specified page will be shown in this article. WillPopScope WillPopScope is used to process whether to leave the current page or not. There are many ways to leave the cu ...

Added by Tranquilraven on Wed, 13 May 2020 03:49:00 +0300

Vue.nextTick

What is nextTick Vue's official document says, "perform a delayed callback after the next DOM update cycle. Use this method immediately after modifying the data to get the updated dom. " , why does such an API appear? The main reason is that Vue uses asynchronous execution to update dom. As long as it listens for data changes, Vue wi ...

Added by dylan001 on Sat, 09 May 2020 07:55:40 +0300

The mobile terminal detects that the wechat browser returns, closes and enters the background operation

Background: for a recent countdown learning time recording project, you need to record the progress of the current page when the user clicks the back button of the browser or directly closes the browser, or directly exits wechat or enters the background. The next time you go in, you need to start the countdown from the last place you left. At f ...

Added by edgev on Fri, 08 May 2020 13:39:14 +0300

Python and Nose realize automatic test of mobile application

Today I'm talking with you about Python and Nose's automatic testing of mobile applications. I hope it can help you. There's something bad to say. Please give me more advice! The coolest thing about automated functional testing with Appium is that you can write your test code in any language that has the best testing tools for you. Python is t ...

Added by sottwell on Wed, 06 May 2020 15:13:20 +0300

ios trust server certificate

When we use https to make network requests, we will receive the certificates from the server. These certificates are divided into agency certificates and certificates issued by ourselves. In ios, if we are going to request an organization certified to send an https request, we don't need to process it. But if it is a self signed certificate, we ...

Added by svihas on Mon, 04 May 2020 19:46:49 +0300