elementui+jquery timetable component

After sett ing up, you need a timetable component. If you can't find any information on the Internet, you write one yourself. There may be some bug s Based on elementui and jquery Because the cell click event is filled with the color I use, I can't write the event by myself. You can use the parent compo ...

Added by crash4o4 on Sun, 02 Feb 2020 17:10:41 +0200

JavaScript uses typeof to judge whether it is an object's disadvantage

Title: use typeof bar === "object" to determine whether bar is the potential trap of an object? How to avoid this trap?   1: Using typeof   First look at the following code: var carr=[]; var cobj={}; function cfun(){ console.log('cc'); } console.log(typeof carr=='object'); //true console.log(typeof cobj==' ...

Added by andyjimmy on Sat, 01 Feb 2020 04:18:40 +0200

Share your own JS version date format and parsing tool class, absolutely easy to use!

Preface I originally wanted to imitate the SimpleDateFormat() object in Java, but I felt it was inconvenient to use it, so I wrote it as a separate method. Original link Date format 2.1. Instructions formatDate(date, fmt), where fmt supports the following formats: y (year) M (month) d (day) q (quarter) w (week) ...

Added by danger2oo6 on Tue, 28 Jan 2020 16:44:09 +0200

Display effect of DOM hyperlink prompt in jQuery

In modern browsers, hyperlinks already have their own prompts, just add the < title > attribute to the < a > tag. The code is as follows: <a href="#"title =" this is my hyperlink tip. "> tips</a> But this prompt effect is very slow, to achieve better human-computer interaction, you need ...

Added by lucy on Sat, 25 Jan 2020 17:34:12 +0200

jQuery operation check box, set to select, uncheck, get the selected value, judge whether to select, etc

jQuery operation check box skill Summary - set selected, unchecked, get selected value, judge whether selected, etc 1, checked property definition First understand the checked property of the input tag: 1. HTML < input > checked attribute ◆ definition and usage The checked property is a ...

Added by Serberus on Sun, 19 Jan 2020 06:11:24 +0200

Create new DOM elements from HTML strings using built-in DOM methods or prototypes

I have an HTML string representing the element: '< li > text < / Li >'. The elements I want to attach to the DOM (in my case, ul). How can I do this using the Prototype or DOM methods? (I know I can do this easily in jQuery, but unfortunately we didn't use jQuery.) #1 building This will also work: $('<li>').text('h ...

Added by dlester on Fri, 10 Jan 2020 17:24:54 +0200

JQuery file upload use, jQuery file upload plug-in

================================ Copyright 2020-01-10 https://www.cnblogs.com/fanshuyao/   1, Official website address: https://github.com/blueimp/jQuery-File-Upload   2, Use document (parameter description) https://github.com/blueimp/jQuery-File-Upload/wiki/Options   3, Browser support (official website description) Google Chrome ...

Added by eatadi on Fri, 10 Jan 2020 16:40:20 +0200

Convert Object to String

How do I convert JavaScript objects to strings? Example: var o = {a:1, b:2} console.log(o) console.log('Item: ' + o) Output: Object {a = 1, b = 2} //Very good readable output:) Item: [object Object object] //Don't know what's inside: ( #1st floor To glance at jQuery-JSON Plug-in unit Essentially, it uses JSON.stringif ...

Added by gynophobia on Tue, 07 Jan 2020 02:34:32 +0200

Verification of verification code by Javascript code

I've shared how to use it before H5+Javascript generate verification code (click to see my previous blog). Today, I want to share how to generate a set of verification codes by using random numbers, and verify whether the input verification codes match through js code. First look at the renderings: The overall effect is: c ...

Added by jstarkey on Tue, 07 Jan 2020 02:31:30 +0200

JavaScript Design Mode-Factory Mode

Author| Jeskson Excavation| https://juejin.im/user/5a16e1f3f265da43128096cb What is factory mode? The scene goes to buy dumplings for you to eat, order directly instead of making your own. The restaurant makes dumplings (dumpling process) and sells them directly to customers. class Product{ constructor(name) { this.name = name } init() { ...

Added by pck76 on Mon, 06 Jan 2020 14:27:27 +0200