Tag:Blank space

  • Flyer widgets dialog – dialog

    Time:2021-7-13

    Note: without special instructions, the version of flutter and dart are as follows: Flutter version: 1.12.13 + hotfix. 5 Dart version: 2.7.0 When an application carries out important operations, it often needs the user to confirm twice to avoid the user’s misoperation. For example, when deleting a file, a prompt “do you want to delete […]

  • CSS + jQuery to achieve click image zoom in and zoom out preview image preview view big picture

    Time:2021-3-11

    requirement Click an image, the image will be enlarged, view the big picture, click the blank space will hide the big picture, back to the thumbnail. Technical points JQuery is mainly used to show and hide elements. code <!DOCTYPE html> <html> <head> <title>qqq</title> <meta charset=”utf-8″> <style type=”text/css”> *{ margin:0; padding:0; } h1{ text-align: center; margin:20px […]

  • Angular’s $apply attempt

    Time:2021-2-14

    The $apply problem in the development of angular Due to the fact that angular has been used in the development of the project all the time, we will encounter some relatively mentally retarded problems, so we will summarize the time-consuming problems every time. $apply problem When you receive a request like dropdown, click the button […]

  • Flutter click the blank space to cancel the textfield focus and collapse the keyboard

    Time:2020-12-4

    Original text:Note – click in the blank space of flutter to cancel textfield focus GestureDetector( behavior: HitTestBehavior.translucent, onTap: () { //Touch to fold up the keyboard FocusScope.of(context).requestFocus(FocusNode()); }, child: …. } Put the code above on the outermost layer, and your own layout will be placed in the child. It will be effective in Pro […]

  • CSS + jQuery: click on the image to enlarge and reduce the preview image preview to view the large image

    Time:2020-8-11

    requirement Click on an image, the picture will be enlarged, view the large image, click the blank will hide the large image, back to the thumbnail. Technical points JQuery mainly displays and hides elements. code <!DOCTYPE html> <html> <head> <title>qqq</title> <meta charset=”utf-8″> <style type=”text/css”> *{ margin:0; padding:0; } h1{ text-align: center; margin:20px 0; } #imgdiv{ […]

  • Add in the window right-click menu open in vs Code

    Time:2020-6-2

    Add in the window right-click menu open in vs Code Code eating demon: you can install vs code before. I don’t know why you can’t right-click it to open it in vs code later. So, search the Internet for the following methods. Experiment time: May 16, 2020. Experimental effect: effective. The results are as follows: […]

  • Front end Q & A – how to output new line on the page

    Time:2020-5-11

    In our work, we have the following ways to collect user input Input input input box, single line, overall style, plain text. Textarea input box, multi line, overall style, plain text. Contenteditable, multiline, independent style, rich text. Other rich text editor, multi line, independent style, rich text. If you don’t want to use that heavy […]

  • The hard to find pit in work — similar character problem

    Time:2020-5-6

    1. Why can’t it be triggered? button full-width characters Full space may be triggered unconsciously during input, which has little effect in JS, but it may be difficult to find between attributes in HTML tags, resulting in the invalidation of attributes behind full space Although full – angle characters are basically taboo in code, but […]

  • Sublime installation notes

    Time:2020-5-5

    Today, you need to install a sublime on win8. Refer to the sublime configuration on OSX, and record the process. First of all, python, PHP, nodejs, GIT are required. In order to avoid unnecessary troubles, the installation directory must be free of spaces and Chinese directories, and added to the system path variable. Install package […]

  • 36. Effective Sudoku

    Time:2020-4-24

    Judge whether a Sudoku of 9×9 is valid. Just verify that the number you have filled is valid according to the following rules. Numbers 1-9 can only appear once per line.Numbers 1-9 can only appear once in each column.The numbers 1-9 can only appear once in every 3 x 3 uterus separated by thick solid […]

  • 37. Solve Sudoku

    Time:2020-4-23

    Write a program to solve Sudoku problem through filled space. The solution of a Sudoku should follow the following rules: Numbers 1-9 can only appear once per line.Numbers 1-9 can only appear once in each column.The numbers 1-9 can only appear once in every 3 x 3 uterus separated by thick solid lines.Blank spaces are […]

  • Isnotblank() and isnotempty() summary

    Time:2020-4-23

    import org.apache.commons.lang.StringUtils; import org.junit.Test; public class Test{ //Conclusion: isnotblank() must contain something null, “”, “”, and return false @Test public void testDemo1(){ String str = ” “; System.out.println(StringUtils.isNotBlank(str));//true } //Conclusion: isnotempty() is to count the space in it, null, “”, return fasle, return true @Test public void testDemo2(){ String str = “”; System.out.println(StringUtils.isNotEmpty(str)); } } […]