Home > Web Front-end > JS Tutorial > body text

Supplement to jquery calendar component development content

不言
Release: 2018-09-07 15:52:56
Original
1194 people have browsed it

The content this article brings to you is to supplement the knowledge about jquery calendar component development. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

` is a newly added operator that represents a template string.

var a = 10;
var b = "高兴";
var c = "手机";
var str = `好高兴啊,我买了一个${c},花了${a}元,我很${b}啊!`;
Copy after login
rrree

Append to span_container
append() - Insert content at the end of the selected element
prepend() - Insert content at the beginning of the selected element

Note: When appending element nodes, include quotation marks, otherwise they will not be appended.

If you want the scrolling effect to appear, you cannot let rendr() participate, and you cannot setState in render, otherwise the state changes as soon as the state changes. render is re-enabled, the page is refreshed directly, and there will be no animation effect.

jquery cannot respond to wheel events, and can only install plug-ins
jquery.mousewheel.js

Swipe up delta>0
Swipe down delta<0

The scroll wheel must use stop(true,true) here
The scroll wheel must use stop(true) here. If you slide too fast, it will appear. The following accumulated events

Supplement to jquery calendar component development content

The life cycle componentDidMount(){} mainly writes time delegation and event monitoring

Get the current year, month and day of the system

$(this.refs.span_container).append($("<span>111</span>")) 
$(this).append("<u></u>");
Copy after login

Return which DOM element triggered the event:

var d = new Date();
"year" : d.getFullYear(),"month" : d.getMonth() + 1,"day" : d.getDate(),
Copy after login
event.target
Copy after login

Related recommendations:
Jquery calendar plug-in to make a simple calendar_jquery

jquery Detailed explanation on the use of web page calendar display control calendar3.1

The above is the detailed content of Supplement to jquery calendar component development content. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!