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}啊!`;
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
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>");
Return which DOM element triggered the event:
var d = new Date(); "year" : d.getFullYear(),"month" : d.getMonth() + 1,"day" : d.getDate(),
event.target
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!