Category:Program

  • The problem of keeping alive cache in Vue Mobile

    Time:2020-1-19

    When the Vue mobile terminal exits the current a user and switches to the new B user, the data of B user or that of a user is the cache of the last account. How do you solve this problem? I’m very anxious

  • Inheritance and block of flask

    Time:2020-1-19

    In the process of web development, there are many similar page parts, such as menus. How to implement them? You can take the template, and then inherit the template. In the following example, base.html is the template file. The reference page uses {% base. HTML ‘base. HTML’%} to inherit the template. But not all the […]

  • Call member function of null pointer class without error

    Time:2020-1-19

    What is the reason for the null pointer instance to call the member function? Guess what happens when the following example runs? class A { public: static void print() { printf(“>>>>>\n”); } void print2() { printf(“+++++\n”); } void print3() { printf(“====%d\n”, value); } private: int value; }; int main(int argc, char *argv[]) { A *a […]

  • When the input, select, and textarea of Apple mobile phone lose focus, the page will not return

    Time:2020-1-19

    I am a brick, where to move!In mobile project development, we often encounter strange problems, which is normal. However, due to the differences between IOS and Android, adaptation problems often occur.In fact, when the input, select, and textarea of Apple’s mobile phone lose focus, the problem of page not returning to its place is common.Problem […]

  • Open Android Application “black domain” under mac

    Time:2020-1-19

    Install ADB brew cask install android-platform-tools After installation, connect the computer to the mobile phone, turn on the USB debugging mode, and note that the mobile phone needs to turn on the developer mode Open the mobile phone information, click the version information, and click until you are prompted to open the developer mode For […]

  • CSS to achieve the progress effect of scroll bar

    Time:2020-1-19

    How to know the current scrolling distance of the user and inform the progress bar? Imagine: what if the page scrolling and progress bar are integrated?Use linear gradients to achieve: .body{ position: relative; padding: 50px; line-height: 30px; width: 600px; height: 1200px; background-image: linear-gradient(to right top,#ffcc00 50%,#eee 50%); background-size: 100% calc(100% – 100vh + 5px); background-repeat: […]

  • Innovate party building work, and help with smart party building!

    Time:2020-1-19

    In the wake of the communication technology and the Internet + trend, China has gradually entered the age of wisdom. The age of wisdom means a lot of cumbersome tasks that need manual work, and all kinds of inconvenience caused by time and space constraints have been conquered by intelligent information technology. People do not […]

  • IOS push is so simple! unbelievable!

    Time:2020-1-19

    By chance, the company’s projects need push. I’m lazy and don’t want to work out the whole process of APNs. I just talked to my friends about the Android push integrated into their products, saying that the experience is OK, so I’ll try their IOS push this time. So with a try mentality, I first […]

  • Design principles and code practice (primary online Bug)

    Time:2020-1-19

    Design principles and code practice (primary online Bug) The origin of bug Some time ago, I received a demand. Because the schedule was very tight, I started to work without careful planning. The demand description is roughly like this: the front page of the store’s app will display six pictures of the store, which used […]

  • H5 feature’s formdata does not refresh file upload

    Time:2020-1-19

    miscellany The previous friend said not to refresh the uploaded file. The most violent solution is to search all kinds of JS libraries on the Internet, with multiple pictures uploaded, previewed, even image processing and other special effects. So if you don’t touch third-party libraries, can you use ajax to do it. As for this […]

  • Vue instance initialization of Vue source code

    Time:2020-1-19

    This section mainly records:VueInitialization process of The following is officially started: Life cycle diagram of Vue official website Point outnew Vue()The post initialization phase, i.ecreatedWhat happened before. initLifecyclestage export function initLifecycle (vm: Component) { const options = vm.$options // locate first non-abstract parent let parent = options.parent if (parent && !options.abstract) { while (parent.$options.abstract && […]

  • On element UI cascading menu (city three level linkage menu) and echo problem

    Time:2020-1-19

    Code bottom Parameter screenshot of each item The code is as follows < El form item label = “domicile” prop = “census land” style = “padding left: 57px” > <el-cascader v-model=”ruleForm.censusLand” style=”width:180px;padding-left:7px;width:270px” Placeholder = “please select province or city” :options=”cascaderData1″ @expand-change=”censusLandChange” :props=”{ value: ‘id’, label: ‘name’, children: ‘cities’ }” ></el-cascader> </el-form-item> data (){ retutn { […]