The simplest, understandable and uncomplicated js to implement the function of enter key tab

The simplest, understandable and uncomplicated js implementation of enter key tab function text box jump When we beginners start to learn js form validation, they may want to use the enter key to realize the jump of text box, which is more convenient, but they will find that pressing the enter key will submit the form, which ...

Posted by zackat on Sun, 08 Dec 2019 23:47:41 -0800

Local refresh 1 of python anti crawl web page

# ajax dynamic loading web page # How to judge whether a web page is dynamically loaded? # Check the source code of the web page. If there is no data you want in the source code, try to visit the next page. When you click the next page, the whole page is not refreshed, but partially refreshed, most likely ajax loading # In case of ajax loading ...

Posted by pauleth on Fri, 06 Dec 2019 15:47:03 -0800

In the robot framework, use the selenium Library

At present, we use Python 2.7 (please do not despise, company environment, can't use Python 3) + robot framework to automate the function test. Today, we need to use selenium for web page operations, as follows   Installing the selenium 2 library Library Using pip installation, the process is simple: pip install robot framew ...

Posted by flash99 on Tue, 03 Dec 2019 03:01:57 -0800

vue radio box custom style and radio box value

First, let's look at the style of the radio box: <div class="option" v-for="(option, ind) in item.surveyQuestionOptionList" :key="ind"> <input :value="option.selectid" type="radio" :id="'option' + item.qid + option.selectid" :name="item.qid" :checked="ind == 0"> <label :for="'option' + item.qid + option.selectid ...

Posted by Patty on Tue, 03 Dec 2019 01:06:01 -0800

Multi file upload and download: transfer as hexadecimal string

1. Preface Recently, we are maintaining an old Web project, which uses DWR 2.0 (a remote communication framework that can call Java methods in js). Now we need to use this framework to upload files to and download files from the server. However, DWR 2.0 used in this project only supports calling Java methods with basic data types, String, List, ...

Posted by Fakcon on Mon, 02 Dec 2019 05:36:35 -0800

python-selenum3 day 6 - WebDriver common API s

1. Loop through all drop-down list values2. Radio drop-down list3. Selection and cancellation of multi selection list4. Operate the radio box, multi box, assert and select all5. Assert keywords in page source code6. screenshots7. Drag page elements 1. Loop through all drop-down list values <!--Practicing html--> //Education back ...

Posted by pillot1005 on Wed, 20 Nov 2019 12:24:42 -0800

A simple slider component

Let's take a look at a picture: There are many ways to achieve this effect, such as directly using < input type = "range" / > to modify the style, or using the following methods to modify style HTML code: <div class="slider"> <button class="slider-track"></button> <button class="slider-thumb">&l ...

Posted by Daegalus on Wed, 20 Nov 2019 11:32:15 -0800

JavaWeb learning Servlet series 19 HttpServletRequest get request header content

In this article, we will learn the related operations of HttpServletRequest on request header. In fact, there are two methods to learn. The first is to get the value of specific attribute in request header. The second method is to get all attributes. The return is an enumeration type.   1. Get the value of name in a request h ...

Posted by chris_s_22 on Sun, 10 Nov 2019 08:46:13 -0800

js+node.js+socket.io realizes chat function (private chat, group chat creation)

Design sketch: Four clients are started for testing 1. Log in and get the list of online users2. Private chat function3. Group chat function I found WebSocket by chance. I found that it can communicate in real time and chat online. So I made a demo of chat tool and recorded it Source code Socket.io WebSocket is native to js, and Socket.io is a ...

Posted by slamMan on Thu, 07 Nov 2019 00:24:35 -0800

canvas, the only front-end implementation in the whole network, supports multi graph compression and package and download

Technology stack: canvas JSZIP.js (the JSZIP Library of the compression and decompression plug-in on the web page side) Filesaver.js (file saved to local library) Direct interpretation of source code: <div class="cont"> <div class="uploadBtn">Select pictures<input name="file" accept="image/png, image/jpeg" multipl ...

Posted by basim on Thu, 31 Oct 2019 03:22:39 -0700