FileReader gets the BASE64 code of the picture and previews it

FileReader gets base64 code of picture and previews it FileReader, to be honest, I'm not familiar with it. It's just a record of usage here. Method name parameter describe abort none Interrupt read readAsBinaryString file(blob) Read file as binary readAsDataURL file(blob) Read file as DataURL readAsText fil ...

Posted by RazorICE on Tue, 31 Mar 2020 09:23:34 -0700

Native js implements Ajax requests, including get and post

Now the web requests data from the server, many of which use Ajax, but they are all wrapped with JQuery. In the previous project, because JQuery cannot be referenced, it can only be used in the native, not to speak much, please see the code. 1 /*-------------------Ajax start--------------------*/ 2 3 function ajax(options) { 4 options ...

Posted by bernouli on Tue, 31 Mar 2020 01:09:43 -0700

js reads the Excel table, js finishes clicking to copy the data

Crap Project requirements: read a block of excel according to the date; generate an array; click to copy the array for other purposes; Read different sheet s according to the week (lower left corner of Excel) Read Monday's title and Tuesday's title, in turn.. The Excel content area is as follows: Final effect example: U ...

Posted by skripty on Tue, 31 Mar 2020 00:00:38 -0700

Object expansion

Object expansion Object development review: Object literal, object deconstruction, three dot operators Object name attribute Object's method name attribute, but there are two special attribute methods. 1. If it is a property method, it is obtained through the property object. // / / object // let obj = { // demo() {}, // //Characteristi ...

Posted by boby on Sun, 29 Mar 2020 03:05:58 -0700

Understanding and notes on Ajax Application and jQuery plug-in in jquery

Ajax has both native and packaged jQuery versions. It feels that jQuery's writing method is simple and clear, and does not need to be compatible with browsers. 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title></title> 6 </head> 7 <body> 8 ...

Posted by davidcriniti on Thu, 26 Mar 2020 08:37:44 -0700

JavaScript Modular Development

What is modular development? In front-end development, it can achieve some basic interaction effect as long as several dozens or hundreds of lines of code are embedded in script tags at first. Then js is valued and widely used. The help of jQuery, Ajax, Node.Js, MVC, MVVM, etc. also makes front-end development important and makes front-end pro ...

Posted by pmjm1 on Mon, 23 Mar 2020 10:53:05 -0700

JQuery - about jQuery operation properties, elements, size locations, etc.

1. Operations on attributes The so-called attribute operation is to manipulate the attributes of a series of elements, value la class.... Especially the operation on input is very important. To complete the next advanced Sao operations on the framework, let's now take a look at the three prop(), attr(), and data() operations common to jQuery a ...

Posted by Elemen7s on Sun, 22 Mar 2020 19:46:56 -0700

How to detect DIV size change?

I have the following example html, which has a DIV with a width of 100%.It contains some elements.Internal elements may be repositioned and div sizes may change when executing window resizing.I asked if it was possible to hook up div size change events?And how do you do that?I currently bind the callback function to the jQuery resize event on ...

Posted by Thumper on Fri, 20 Mar 2020 01:11:22 -0700

Animation + Ajax+touch module + zepto plug-in in zepto

Animation in zepto There is no animation module in zepto, so fx.js and fx_methods.js need to be introduced separately https://github.com/madrobby/zepto       Show and hide toggle elements <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>zepto</title> <meta name="viewport" ...

Posted by Donnamabob on Wed, 18 Mar 2020 09:40:42 -0700

About PHP + jQuery UI drag floating layer to sort and save to database instance

The PHP + jQuery UI implements the drag floating layer sorting layout and saves the dragged floating layer position sorting results to the database instance. First, jQuery library and jquery-ui.min.js are introduced, then a drag loading image is placed, and multiple module drag layers are read from the database. Modules and orderlist are used ...

Posted by carlmcdade on Wed, 18 Mar 2020 07:30:21 -0700