• Json introduction


    Introduction and structure of JSON JSON is the abbreviation of JavaScript object notation, which means JavaScript object notation Is the syntax for storing and exchanging text information. Similar to XML, but smaller, faster, and easier to parse than XML Introduction to the official website JSON (JavaScript object notation) is a lightweight data exchange format. […]

  • Example of tab function implemented based on jQuery [download source code]


    The example of this paper describes the tab function based on jQuery. To share with you for your reference, as follows: JQuery, the killer level JS framework, has obviously become the standard JS Library in the development field, which is often used in the development of general web applications. Today, I found a plug-in to […]

  • Ajax has no refresh comment function


    This is the message board interface. When the user clicks submit message, it will be submitted to my message automatically If the message content is empty, or if the message content is gray, please fill in the message content. When the user fills in the information, the number of words in the current message will […]

  • Notes on the basis of Vue and some learning experiences


    What you don’t know in Vue, and precautions v-html When v-html is used, the value in the instruction will overwrite the original value in the binding tag, and when v-html is used, do not set it as the place to provide content to users, because v-html is easy to be attacked by XSS v-bind When […]

  • JS realizes the function example of iPhone like webpage sliding screen unlocking [Download with source code]


    The example of this paper describes how JS can realize the function of page slide screen unlocking similar to iPhone. To share with you for your reference, as follows: The emergence of iPhone breaks people’s user experience, which extends to web design. Recently, I saw a lot of blog comments are implemented in the way […]

  • Count the difference between async: false and async: true in Ajax requests


    Examples are as follows: function test(){ var temp=”00″; $.ajax({ async: false, type : “GET”, url : ‘’, complete: function(msg){ alert(‘complete’); }, success : function(data) { alert(‘success’); temp=data; temp=”aa”; } }); alert(temp); } Checkphone() method in userlaction public void checkPhone() throws IOException { this.getServletResponse().setContentType(“text/html; charset=UTF-8”); this.getServletResponse().setHeader(“Cache-Control”, “no-cache”); PrintWriter out = this.getServletResponse().getWriter(); out.print(“true”); } Async: false, (the […]

  • react-native—–hello word!


    React native runs helloword Today is a special moment. I started to learn react native the day before yesterday. I’ve been making mistakes in building environment towers and running packages. Tonight, I finally set up this difficult environment and successfully run the first helloword!! This environment: python2 + java JDK + Android I did it […]

  • Simple method of rolling up a markdown editor with electron


    Markdown is a necessary skill for every developer. In the process of writing markdown, we always look for a variety of editors, but each editor can only meet the needs of one aspect, but not all the needs of daily writing. So Mengsheng tries to do it by himself, using electron to toss a markdown […]

  • Ajax and MySQL data interactive message board function (all)


    Recently, I have made a small demo to realize the data interaction between Ajax and mysql. In the JS part, JQ is used, PHP is used in the background, MySQL is used as the database, and a node + mongodb version will be used later. About the use and installation of MySQL, I won’t talk […]

  • Summary of common methods for jQuery to operate checkbox [download test source code]


    This paper describes the common methods of jQuery to operate checkbox. To share with you for your reference, as follows: In the process of system building, it is inevitable to deal with the checkbox check box. In every system, it is an essential dish. The usual operations are as follows: 1. Use jQuery to select […]

  • Ajax implementation of data paging query


    AJAX is used to query the database and paginate the query data for your reference. The details are as follows Master page code <html xmlns=””> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ /> < title > Untitled Document < / Title > <script src=”jquery-1.11.2.min.js”></script> <style type=”text/css”> .dangqian{ background-color:#69F} </style> </head> <body> <div> <input type=”text” /> < input […]

  • Nodejs prompt: cross device link not allowed, rename error solution


    Node.js prompt error: Error: EXDEV: cross-device link not permitted, rename ‘C:\Users\THEDIS~1\AppData\Local\Temp\upload_9b46f1afc2f9ade074037c3fb707d271’ -> ‘E:/node-rumen/tmp/test.png’ Error calling fs.renamesync method when uploading files This prompt is about the permission problem of cross region rename file. Resolvent First copy from the source file to the target file of another partition, and then unlink. form.parse(request, function(error, fields, files) { console.log(“parsing […]