Summary of domains and closures in js

Foreword: Scope is a very basic knowledge in js, and it is also a place that front-end interview questions like to examine.Understanding scope is also a prerequisite for using closures. Scope understanding 1. First of all, understand that there is no block-level scope in js, only global scope and function scope in js; Variables not decla ...

Posted by amit.patel on Sat, 11 Jul 2020 08:33:32 -0700

Summary of domains and closures in js

Foreword: Scope is a very basic knowledge in js, and it is also a place that front-end interview questions like to examine.Understanding scope is also a prerequisite for using closures. Scope understanding 1. First of all, understand that there is no block-level scope in js, only global scope and function scope in js; Variables not decla ...

Posted by vbzoom.com on Sat, 11 Jul 2020 08:33:08 -0700

Getting started with middleware mycat (1): Deployment and introduction

During the initial testing process, the project originally used kingshard as the middleware, but during the testing process, we found that the join does not support different sub-tables, so we can only choose to give up and change to mycat to do the testing Download address is [root@gzsd-ks01-101110214 download]# wget http://dl.mycat.i ...

Posted by Aptana on Fri, 10 Jul 2020 09:18:41 -0700

Scrapy Framework--Get/Delivery/Local Save of Cookies

Environment: Python 3.6 + Scrapy1.4 What I want to do: 1. Complete a simulated landing _2. After successful login, extract the cookie s and save them locallyCookie.txtFile _3. Use it again from localCookie.txtRead cookie s and omit simulated login. I read some blogs about how Scrapy manipulates cookies, and they are all very different (they don ...

Posted by fugix on Fri, 10 Jul 2020 09:14:35 -0700

CentOS 7 PHP7 Enable session extension

Configuration Guide: http://php.net/manual/zh/refs.basic.session.php http://php.net/manual/zh/session.configuration.php Use the command: php -i Find the information for the printout session block session Session Support => enabled Registered save handlers => files user Registered serializer handlers => ph ...

Posted by markyoung1984 on Fri, 10 Jul 2020 08:49:27 -0700

Merge sort algorithm implemented in Java

The following is a merge sort algorithm implemented in Java, referencing Algorithms Unlocked by Thomas H. Cormen I read some blogs from other CSDN bloggers, and I think some details can be optimized, such as avoiding overflow due to too long array length, and using mid = low + (high - low) / 2 for mid For example, instead of creating a (high ...

Posted by Loran on Fri, 10 Jul 2020 08:37:44 -0700

Custom View Learning Notes (1)

Drawing method of 1.1 histogram The first step is to understand what steps are required to draw this histogram. 1. Histogram in the middle 2.X,Y-axis 3. Histograms of the same style First, the word "histogram" is drawn. What you need is the drawText method, which is located in the middle and bottom, so it's very good to draw. ...

Posted by caminator on Fri, 10 Jul 2020 07:34:36 -0700

The choice of Hybrid APP hybrid development mode (7: full version of JSBridge)

preface Reference sources This paper refers to the following sources Design ideas of Hybrid APP architecture marcuswestin/WebViewJavascriptBridge Wedge This paper introduces the complete implementation of JSBridge, including JS part, Android native part and iOS native part JS implementation part explain This is a JSbridge implementati ...

Posted by benyboi on Thu, 09 Jul 2020 09:13:20 -0700

offer rotation array

Moving the first elements of an array to the end of an array is called array rotation. Input a rotation of a non decreasing sort array and output the smallest element of the rotated array. For example, if the array {3,4,5,1,2} is a rotation of {1,2,3,4,5}, the minimum value of the array is 1. NOTE: all elements given are greater than 0. If th ...

Posted by Zoofu on Thu, 09 Jul 2020 09:01:58 -0700

Singleton mode -- Implementing multiple document windows (MDI)

Use MS visual studio to design a multi document window (MDI), then create a toolbar (ToolStrip), add a button in the toolbar, click the button will pop up a "tools" window, use singleton mode to design, so that only one "tool" window can pop up 1. Design a multi document window: create a blank solution first, and then add M ...

Posted by tymlls05 on Thu, 09 Jul 2020 08:50:11 -0700