Common methods of Request object in java web
Request principle
1. The request object and the response object are created by the server. Let's use them.
2. The request object is used to get the request message, and the response object is used to set the response message.
Request function
Get request message data
Get request line data
Reques ...
Posted by ecg on Sat, 15 Feb 2020 16:51:00 +0100
[Vue] 6 - Options - filters, computed, watch, template, dynamic binding style (: class /: style)
Article directory
1.filters
2. Calculated calculation attribute
3. watch
4.template
5. Dynamic binding style
: class = "object / array"
: style = "object / array"
1.filters
If there are two vue instances, one instance cannot get the method in the other instance. As follows ...
Posted by roxki on Tue, 11 Feb 2020 12:16:57 +0100
Advanced knowledge of JavaScript
1 Function object
Section 1: Function object introduction
Function is the method object of js. You can use function instances to generate any js method object
The second section: creating method objects with Function
<script type="text/javascript">
/* function say(name,age){
alert(name+"T ...
Posted by Debbie-Leigh on Thu, 30 Jan 2020 16:17:12 +0100
Memo Mode C++.
Memento
Memento Pattern holds a state of an object so that it can be restored at the appropriate time.The memo mode is behavioral.
introduce
Intention: Capture the internal state of an object without destroying its encapsulation and save the state outside the object.
Main Solution: The so-called ...
Posted by PHPslide on Thu, 30 Jan 2020 03:26:17 +0100
Web Foundation - Bootstrap
Article Directory
Bootstrap:
Responsive Layout
CSS Styles and JS Plugins
case
Bootstrap:
1. Concept: A framework for front-end development, Bootstrap, from Twitter, is currently a popular front-end framework.Bootstrap is based on HTML, CSS, JavaScript. It is simple and flexible, making Web deve ...
Posted by thenewperson on Thu, 23 Jan 2020 03:44:01 +0100
js using json files
window.onload = function() {
//Path to json file
var url = "js/test.json"
var request = new XMLHttpRequest();
//Set request method and path
request.open("get", url);
//Do not return data to the server
request.send(null);
request.onload = functio ...
Posted by zohab on Tue, 21 Jan 2020 10:40:36 +0100
Component fundamentals in Vue
How to create components
// 1.1 use Vue.extend to create a global Vue component
var com1 = Vue.extend({
// Through the template attribute, the HTML structure to be displayed by the component is specified
template:'<h3>This is used. Vue.extend Components created ...
Posted by JimStrosky on Sat, 18 Jan 2020 09:20:35 +0100
JS realizes three methods of uploading pictures and preview pictures
In the common user registration page, users need to select a picture locally as their avatar and preview it at the same time.
There are two common ideas: first, upload the image to the temporary folder of the server, return the url of the image, and then render it on the html page;
Another idea is to preview the image directl ...
Posted by Phpdiot on Tue, 07 Jan 2020 08:21:43 +0100
python learning: scratch + selenium crawling Taobao product information
Learning purpose: to use the framework of scratch to obtain dynamic website information. Take Taobao as an example, to obtain the [description, price, store, picture link] of goods and save the obtained information to execl table, or json file, database.
Open Taobao homepage to search Yijia mobile phone, and get the url of t ...
Posted by mwood_2k2 on Mon, 06 Jan 2020 18:19:27 +0100
Waiting cache events for img
Demand:
Ensure that the printing method is executed after all pictures are loaded successfully
Implementation of final code:
printMail = () => {
this.btnDisplay='none';
//Get the window object of iframe
let iframe = document.getElementsByClassName('wea-email-content-iframe')[0].contentWindow;
let img_lengt ...
Posted by Gladiator2043 on Sun, 05 Jan 2020 12:42:28 +0100