• Welcome to the eight year blog, I'm glad to meet you at the right age!
  • Due to the theme, QQ login partners will display the default avatar in the comments. Please go to the personal center and upload the avatar again.

Using local storage localstorage to realize no more pop-up function

 Using local storage localstorage to realize no more pop-up function
For example, I have a web page. After I open it, I will pop up a notice or advertisement. Anyway, I want to pop a window. if you don't click "don't remind me next time", it will still pop up for you next time!!! For example, who is it? Why do you hit him? For example, after the user clicks "true", the user will no longer be able to load a page Read the full text

barben One year ago (June 11, 2019) 674 browse 0 comments nine Praise

Vue.js code for MD5 encryption of text (without plug-ins)

 Vue.js code for MD5 encryption of text (without plug-ins)
Remember last week when using Baidu translation API, you need to submit the following fields. Field name type type type required parameters description description remarks Q text ϲ y request translation query query query ϲ UTF-8 coding ϲ from text ϲ y ϲ from text y y from text y ϲ y ϲ from text y from text ϲ y ϲ from text y ϲ y ϲ y ϲ y text y translation language for example: zh Chinese, en English, can not be set to auto detect appid int Read the full text

barben One year ago (May 30, 2019) 1019 browse 0 comments ten Praise

Remember how vue.js uses Axios to make cross domain requests

 Remember how vue.js uses Axios to make cross domain requests
Today is another day of fishing at home. I want to make a bug and write an online translation function. then took down the baidu translation open platform technical documents in the sample interface address, try to see if the normal request down. Request with Axios. Get ('http: / / API. Fanyi. Baidu. COM / API / trans / VIP / translate? Q = Apple & from = en & to = zh & amp Read the full text

barben One year ago (May 19, 2019) 1206 browse 1 comments ten Praise

Solutions to block level elements such as numbers, English and link overflow div and P

 Solutions to block level elements such as numbers, English and link overflow div and P
The origin of the problem yesterday, the manager suddenly came to me and said that there was a style in the project that was not automatically changed. I went to have a look at it and found it strange that the automatic line feed is normal under the normal input of Chinese. How can a longer link bring its own overflow operation??? We have experienced many times in Baidu Do not look at the baidu tag in the automatic line feed You didn't get the answer, as if Read the full text

barben One year ago (April 12, 2019) 635 browse 0 comments ten Praise

Vue.js realizes simple search function

 Vue.js realizes simple search function
The implementation of this search function is very simple. Both the method and the logic (the idea is at the end of the article) only filter and match are used. Now let's have two simple demos! Demo1: input box content changes, automatic search HTML code < div id = app "> < input type =" text "placeholder = please input the content you need to query" V-Mod Read the full text

barben One year ago (March 30, 2019) 3226 browse 0 comments sixteen Praise

Socialist core values mouse click JS special effect code

 Socialist core values mouse click JS special effect code
Now there are so many click special effects code, but I chose to follow the trend again because I am a good young man who abides by the law and loves his country! JQ library needs to be introduced. If jQuery has been introduced into the code, please delete the first line of the following code. <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script& ... Read the full text

barben One year ago (March 11, 2019) 1618 browse 1 comments twelve Praise

Pure CSS adds dandelion dynamic effect to the lower left corner of the website

 Pure CSS adds dandelion dynamic effect to the lower left corner of the website
Although the dandelion code in the lower left corner of the website is full of street, but because the dandelion is very good-looking, I still want to send it out to myself (no, I'm not serious)! pure CSS, as long as it is not controlled by JS and does not affect the code of SEO - it is really fragrant. <div class="dandelion"> <span class="smalldan"></span& ... Read the full text

barben One year ago (March 11, 2019) 553 view 0 comments ten Praise