Tag:Text box
-
Solution to input on model conflict between datepicker and Vue
In the work, we need to do a function of dynamically configuring the delivery time. The front end is the Vue. The code format is as follows: 1 2 3 delivery time: 5 delivery time alias: 6 delete 7 8 Results during debugging, Vue conflicts with datepicker when setting input value. Both the internal mechanisms […]
-
Native JS makes form verification, which is the basic form verification method
Form verification is one of the most common functions of Web front-end, and it is also the basic skill of front-end development. Completing the development of a form verification by yourself also helps to deepen the understanding of string processing and regular expressions. Basic form verification includes: letter verification, number verification, letter and number verification, […]
-
Solution to the problem of native PAGE compatibility with IE9
preface Recently, I received a customer’s native page. The customer requires that the page must be compatible with IE9 and above browsers, and the compatibility mode of 360 browser can be accessed normally. 360 browser can force speed mode through code, which is easy to solve. However, to be compatible with IE9, many CSS3 properties […]
-
Vue throttling global instruction is super simple
Recently, most background project management systems have been throttling with local instructions, which is troublesome. A global text box is posted here. The throttling instruction of the method is executed 0.8 seconds after the user enters 1、 New debounce JS file, content: import Vue from ‘vue’ //Custom anti shake Vue.directive(‘debounce’,{ inserted: function (el, binding) { let timer el.addEventListener(‘keyup’, () => { if (timer) { clearTimeout(timer) } timer = setTimeout(() => { binding.value() […]
-
Using Python to make national ID number verification and query system
Hello, everyone! Good morning. Today is a happy weekend. Today, we share 1 interesting projects. We use Python to make the national ID number verification and inquiry system. The finished product interface is as follows: This system can verify the ID number, age, gender and certification. It looks like it is not very tall. Actually, […]
-
Native JS calendar selector, learn JS object-oriented development calendar plug-in
In the process of web development, we often encounter the function of selecting the date. The general operation is to click in the text box, and then pop up the calendar selection box. Directly select the date to display the selected date in the text box. It is very convenient for users to use after […]
-
Flitter: textfield wrap adaptation
No matter what kind of interface frame, the input text box is a very important control, but I found the input box in fluentTextFieldAlthough there are many introductions, how to combine various attributes to meet the needs is unclear in many articles. In addition, the version of the control changes frequently, and the introductions of […]
-
[share] IOS development – uialertcontroller to realize login / verification password prompt box
NSInteger status = [self.bindingStatus integerValue]; If (status = = 1) {// this sentence is irrelevant and can be removed Uialertcontroller * alertcontroller = [uialertcontroller alertcontrollerwithtitle: @ “set withdrawal password now” message: Nil preferredstyle: uialertcontrollerstylealert]; [alertController addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) { textField. Placeholder = @ “please enter the withdrawal password”; textField.secureTextEntry = YES; }]; [alertController addTextFieldWithConfigurationHandler:^(UITextField […]
-
Before the video was cut, my roommate called me to roll the string. I directly wrote an automatic shutdown program in Python!
Before things were finished, my roommate called me to roll strings. What can I do? I directly wrote an automatic shutdown program in Python to save energy from me! 1. Realization effect 2. Implementation steps Module import import os,sys,time from PyQt5 import QtCore,QtWidgets,QtGui Window settings def pageShow(self,page): #Set the position and size of the […]