Web front-end knowledge combing -- Javascript common syntax
JavaScript, like HTML and CSS, is the three necessary modules for Web front-end development. In addition, JavaScript is also the basic language of Vue, Ext, jQuery and other frameworks, so the learning of JavaScript is crucial. In fact, after learning the C + + language and Java, I feel that the basi ...
Posted by smiley_kool on Wed, 29 Jan 2020 21:06:05 -0800
html click round diffusion display interface effect
Opening remarks
Effect
Core code used
Reflection
explore
Source code
Compatibility issues
Opening remarks
It is common to see that some app s have some click-and-diffuse effects, some act as diffuse display interfaces, some diffuse change theme colors, and want to be implemented on Web pages, so there is this.
Effect
Don't want to be direc ...
Posted by deljhp on Tue, 28 Jan 2020 10:52:23 -0800
Export jsp content to Excel table
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:x="urn:schemas-microsoft-com:office:excel">
<script type="tex ...
Posted by satre on Tue, 28 Jan 2020 08:40:29 -0800
JavaScript syntax: error handling mechanism
1. Error Instance Object
When JavaScript parses or runs, the engine throws an error object whenever an error occurs.JavaScript natively provides the Error constructor, and all errors thrown are examples of this constructor.
var err = new Error('Error');
console.log(err.message); // "Error"
...
Posted by seavolvox on Mon, 27 Jan 2020 21:58:28 -0800
Use of JavaScript document fragments
In JavaScript, document fragment is independent of DOM tree and exists in memory. It is a blank document fragment at the beginning of creation. We can use createDocumentFragment to create it
let fragment = document.createDocumentFragment();
The operations on document fragments, including inserting node ...
Posted by pouncer on Sun, 26 Jan 2020 21:10:30 -0800
Use.apply() with the'new'operator.Is this possible?
In JavaScript, I want to create an object instance (via the new operator), but pass any number of parameters to the constructor.Is this possible?
What I want to do is (but the code below doesn't work):
function Something(){
// init stuff
}
function createSomething(){
return new Something.apply(null, arguments);
}
var s = createSom ...
Posted by tryingtolearn on Sun, 26 Jan 2020 17:57:58 -0800
Several ways of plotting subgraphs with matplotlib
This paper mainly uses matplotlib to draw multiple graphs.
%matplotlib notebook
import matplotlib
from matplotlib import pyplot as plt
plt.ion()
%matplotlib tk
from matplotlib import rcdefaults
rcdefaults()
import numpy as np
import pandas as pd
Method 1: use of plot.subplot (x, x, x) and fig.add_
X ...
Posted by host78 on Sun, 26 Jan 2020 10:33:33 -0800
How to start paging query (JavaWeb)
Technology coverage (JavaWeb, HTML, Ajax, JQuery, Bootstrap)
When contacting this part of knowledge, we often do some small demos to practice. Inevitably, we need to touch a certain amount of data. We often need to echo the data from the database to the page. However, with the increase of data volume, if we do not deal with the query or displa ...
Posted by Sonic_Rage on Sun, 26 Jan 2020 04:19:06 -0800
Basic course of matplotlib
The original idea of doing this tutorial is: Although plt.plot(x,y) is a simple and convenient way, there are many detailed requirements for drawing tutorials involving academic paper, which need to further fine tune the pictures, and at this time, it needs to constantly Baidu Baidu, not to mention writ ...
Posted by fred2k7 on Sun, 26 Jan 2020 00:03:57 -0800
EasyUI - comprehensive case (combined with crud in the background)
Article directory
Common part code
Header.js
Master page layout
Left tree menu layout
h5:
js:
Background data preparation
Staff management
Data list (loading data by HTML)
Format departments and pictures
Recycle bin data (loading data through JS)
Add buttons and events
Ready button
Button add eve ...
Posted by mwkemo on Sat, 25 Jan 2020 07:54:30 -0800