es6 Series of Tutorials - Map Details and Common Apris _____________

The Map type in ECMAScript 6 is an ordered list of many key-value pairs. Key-value pairs support all data types. Key 0 and `0'are treated as two different keys, and no forced type conversion occurs. How to use Map? let map = new Map(); Common methods: Set (key, value): Add a new key-value pair element Get (key): Gets the value correspondin ...

Posted on Tue, 12 Feb 2019 21:09:19 -0800 by sellfisch

< c: for Each > loop <a> tags send other DELETE, PUT, POST requests

It can be said to be the forced use of REST style URL bar <a> Label sends DELETE, PUT, POST requests It is not difficult for a tag to send DELETE, PUT and POST requests. It can use Jquery's ajax request to execute a function when the button is clicked. <a href="url request" onclick="sendBtn(this);return false;" > Send r ...

Posted on Tue, 12 Feb 2019 20:51:18 -0800 by abid786

Section 88: Ajax and ASP.NET in Java and TCP/IP tutorials and JSON

Section 88: Ajax and Jquery in Java What is ajax? What's the usage? Principle, how to use it? ajax is asynchronous javascript and XML (asynchronous javascript and xml), which refers to a web page development technology to create interactive web applications. For example, user registration, input user name, prompt has been registered. AJAX A ...

Posted on Tue, 12 Feb 2019 12:27:18 -0800 by stuartc1

JS for DOM tree traversal implements DFS&BFS

We can generally use DFS (depth first traversal) and BFS (breadth first traversal) to traverse DOM trees. Introduction of DFS & BFS Let's combine the specific examples and give the HTML code fragments as follows: <div class="root"> <div class="container"> <section class="sidebar"> <ul class="menu"></ul ...

Posted on Tue, 12 Feb 2019 02:48:18 -0800 by tjohnson_nb

Day28 - Video Speed Controller

This article is from: Chunge Personal Blog: http://www.liyuechun.org Author: extension Li Yuechun - A Time-chasing Man Introduction: JavaScript30 yes Wes Bos A 30-day challenge to launch. The project provides 30 video tutorials, 30 challenge start documents and 30 challenge solution source code free of charge. The goal is to help peop ...

Posted on Mon, 11 Feb 2019 11:33:17 -0800 by tadapapaya

The loading order of pages in html and the comparison of onload events in window.onload and body Tags

The loading order of pages in html and the comparison of onload events in window.onload and body tags. Case 1: head, body and window.onload outside body are anonymous. <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>onload Sequence Judgment</title> </head> <script typ ...

Posted on Mon, 11 Feb 2019 10:36:17 -0800 by hanhao

ajax uploads form form form data (type='file')

Generally, there are two ways to upload a form: 1: Form form implementation, specify action and method, form tag add a submit button, click submit to achieve upload function, any form of input can be. 2: Ajax implements uploading. Usually, we will choose ajax, because there are more follow-up operations and choices. var args = { id:$( ...

Posted on Mon, 11 Feb 2019 09:09:19 -0800 by ihsreal

Simply get the selected image of input file, and assign src to the img of a div to realize preview (which can upload and remove multiple images)

First, basic principles: The input type="file" control of the form enables the selection of local files, and then submits the form to the server for upload. Note that at this point the form needs to add content attributes: enctype="multipart/form-data", and the form is submitted by post. Example 1: 1 <!DOCTYPE html& ...

Posted on Mon, 11 Feb 2019 04:03:18 -0800 by LostinSchool

DevExpress Asp.Net-1 already has MVC projects using DX

1. Reference to DX assemblies The project references the following assemblies DevExpress.Charts.v16.2.Core DevExpress.Dashboard.v16.2.Core DevExpress.Dashboard.v16.2.Web DevExpress.Dashboard.v16.2.Web.Mvc DevExpress.Data.v16.2 DevExpress.DataAccess.v16.2 DevExpress.Office.v16.2.Core.dll DevExpress.PivotGrid.v16.2.Core DevExpr ...

Posted on Mon, 11 Feb 2019 03:18:17 -0800 by bob_dole

Rxjava2+Retrofit2 combined with mvp simple tutorial Retrofit (2): Simple encapsulation of Retrofit

When it comes to encapsulation, it's the unified processing of requests and returns. 1 or the previous post request, I wrote the result back to the ResultEntity class public class ResultEntity<T> { /** * Server return data is generally {code": 0,"message":"123","data:": generic} * Bu ...

Posted on Sun, 10 Feb 2019 19:15:18 -0800 by thunderbox