ECMAScript reference type

Object object New object var obj = new Object() var obj ={} var obj={age:23} ... hasOwnProperty(property) method var obj = {age:23} obj.hasOwnProperty("age") //Return true obj.hasOwnProperty("name") //Return false var obj = {2:23} undefined obj.hasOwnProperty(2) //Return true isPrototypeOf(object) determines whether th ...

Posted on Fri, 31 Jan 2020 09:48:36 -0800 by dc2000

Using nowAPI to complete a small example of html weather forecast

The effect is as follows: Simple, not much nonsense, on the code! <!DOCTYPE html> <html> <meta charset="utf-8"> <head> <!-- Use Baidu static resource base --> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> <!-- Quoting Sohu's ...

Posted on Fri, 31 Jan 2020 03:48:58 -0800 by iamtom

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 on Thu, 30 Jan 2020 07:19:31 -0800 by djrichwz

Native js implementation drop-down box selection component development

Drop-down box selection Functional requirements: After clicking div, the div shows the aggregation state and the contents of the hidden box. After selecting the number of children, if the number of children is greater than 0, the corresponding number of child age selection boxes appears below. The nu ...

Posted on Wed, 29 Jan 2020 18:31:10 -0800 by XaeroDegreaz

Front end: registration verification page (html+css+javascript)

Article directory Code segment css implementation of inverted triangle css style summary List of items Complete code main.html main.css main.js After a day's writing, I finally finished it. I still feel a little achievement, but I also find that I am still very inadequate. I will continue to wor ...

Posted on Wed, 29 Jan 2020 08:16:45 -0800 by mmtalon

Window Pop-up Case

Window Pop-up Case: 1: Demand *Create a page There are two inputs There is a button (to pop up a subwindow) *Create a pop-up window (subwindow) Implement a table output Each row of the table has a button, name and ID Button corresponds to an event, editing the current number and ...

Posted on Mon, 27 Jan 2020 08:48:01 -0800 by sparkie624

Super ugly number -- solve with heap search

Easy to find with heap sorting Prime numbers are also called prime numbers. A natural number greater than 1, except for 1 and itself, is called a prime number; otherwise, it is called a composite number. Prime factor (prime factor or prime factor) in number theory refers to the prime number that can divide a given positive integer. Except for ...

Posted on Mon, 27 Jan 2020 07:15:29 -0800 by advancedfuture

[winter vacation 2020 JAVA] day15 jQuery advanced notes

JQuery advanced 1. animation 1. Three ways to show and hide elements 1. Default display and hide mode 1. show([speed,[easing],[fn]]) 1. parameters: 1. speed: the speed of animation. Three predefined values ("slow","normal", "fast") or millisecond values rep ...

Posted on Sun, 26 Jan 2020 10:00:35 -0800 by nano

ajax knowledge aggregation (native, encapsulation) and the difference with json

I. what is Ajax AJAX is "Asynchronous Javascript And XML.", AJAX is not a new programming language, but a technology for creating better, faster, and more interactive Web applications. It is a set of browser side web development technology which integrates many technologies. These technologies include Javascript, XHTM ...

Posted on Sun, 26 Jan 2020 09:07:48 -0800 by petromanian

Create a mask to pop up the zTree page with a search box

Copyright notice: fuzzy query js code part refers to the native zTree official code, please contact zTree official for any commercial application. Let's start with the renderings: Technical requirements: when clicking the input tag or opening the mask layer button, the zTree page will pop up; aft ...

Posted on Sun, 26 Jan 2020 08:06:27 -0800 by fgpsmith