Capability Detection of Client Detection

Front words Although browser providers have invested a lot of effort in implementing public interfaces, the result is that each browser has its own strengths and weaknesses. So far, client detection is still a controversial topic in the field of Web development. When it comes to this topic, people always mention that browsers should support a ...

Posted by punk3d on Mon, 25 Mar 2019 03:36:29 -0700

gulp introductory course

Portal: Original link https://segmentfault.com/a/1190000002698606 Step 1: Install Node First and foremost, we need to build a node environment. Visit nodejs.org After downloading, run the program directly and get everything ready. npm It will be installed with the installation package and will be used later. To ensure that Node i ...

Posted by jonstu on Sun, 24 Mar 2019 23:48:29 -0700

The front-end js writes Excel

How can the front end write excel, in fact, is relatively simple, but did not touch this piece, of course, here is only a simple introduction.There are two main ways to support the mainstream browser and the Ie browser. Mainstream browsers This side mainly uses data protocol to parse Excel's Content type (application/vnd.ms-excel) through data ...

Posted by rtown on Sun, 24 Mar 2019 18:57:28 -0700

set and get of css attribute with native JS code

Now let's implement a simple version of the plug-in, which can achieve the acquisition and setup of css attributes without the help of jQuery. First step First, create a css-tool.js file. At first, it looks like this: (function(window,undefined){ "use strict"; var cssTool = function(){ return new cssTool.prototype.init(); } ...

Posted by Simsonite on Sat, 23 Mar 2019 19:42:27 -0700

Commonly used JS picture scroll (seamless, smooth, scroll up and down left and right) code

Commonly used JS image scrolling (seamless, smooth, up and down left and right scroll) Code complete innerHTML: Set or retrieve HTML within the object start and end tags Parameters: Commonly used JS image scroll (seamless, smooth, up and down scroll left and right) code innerHTML: Set or get HTML in object start and end tags scrollHeight ...

Posted by snoopgreen on Fri, 22 Mar 2019 14:03:52 -0700

The use of demo in ztree

zTree is the core code of JQuery to implement a set of Tree plug-ins that can accomplish most of the common functions. Compatible with IE, FireFox, Chrome and other browsers Multiple Tree instances can be generated in one page at the same time Support JSON data Supporting one-time static generation and Ajax asynchronous loading Support m ...

Posted by vamosbenedikt on Fri, 22 Mar 2019 12:06:53 -0700

Phantomjs generates multi-page PDF examples

Phantomjs generates multi-page PDF examples Recent use Phantomjs PDF generation, which encountered some problems, led to the failure of PDF generation, such as the emergence of blank files or too much data on a page, are due to the lack of well-formatted. Especially the paging problem, I feel that there is very little information. Exce ...

Posted by tieded on Fri, 22 Mar 2019 03:00:54 -0700

Section 4 Common label sets && label classification

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> /* reset */ body,h1,h2,h3,h4,h5,h6,p,dl,dd,ul,ol,pre,form,input,textarea,th,td,select{margin:0;padding:0;} em{font-style:normal} li{list-style:none} a{text-decoration:none;} img{border:none; ...

Posted by ozPATT on Thu, 21 Mar 2019 18:00:53 -0700

js Advanced Programming Notes 7--DOM2 and DOM3

Selector API Selectors API is a standard initiated by W3C. Committed to making the browser native support CSS query. querySelector() method This method receives a CSS selector and returns the first element that matches the pattern. If no return null is found. var body = document.querySelector("body"); var myDiv = document.querySelector ...

Posted by Bethrezen on Thu, 21 Mar 2019 16:57:52 -0700

Detailed Explanation of Native JS Events

What is an event? The action of the browser page through the mouse and keyboard is the event. Once an event occurs, it requires event handling, which is called event-driven, and event-driven is usually performed by functions. onclick: mouse click onmouseover: Mouse in onmouseout: Mouse out onkeyup: Keyboard press and lift onkeydown: pre ...

Posted by nicandre on Thu, 21 Mar 2019 13:54:51 -0700