This article is used to record learning notes;JavaScript Object, Object-oriented • Possible for high-level languages you may know or even master OOP object-oriented, so how much do you know about JavaScript? Together we learn JavaScript
1. Window object that obtains the IFRAMEIframeelement.contentwindow2. Obtain the Document object for the IFRAMEThere are cross-domain access restrictions.Chrome:iframeElement.contentDocument firefox:iframeElement.contentDocument
This article is used to record learning notes;JavaScript function This the use of the keyword –this keyword always points to the caller, who calls the function, this points to who call, apply the use of –call and apply the main application and the
Use HTML5, CSS3, and jQuery to enhance Website user experience [retained] And html5css3
Remember a few years ago if you needed to add some interaction elements to your website to improve user experience? Did you immediately think of flash
[Sharing] Google's design principles, materials and resources
At Google, they said, "focusing on users, everything else will come to the fore ". They follow the design principles and seek to build a user experience that surprises users. Google has
Css3 data-attribute attributes create beautiful buttons, css3data-attribute
Several buttons implemented by css3 have been introduced before. Today, some new buttons are provided for netizens. The data-attribute development button of css3 is used.
Beauty of Bootstrap 3 03-independent lines, text wrapping, image adaptive, hidden elements,
This article mainly includes:
■ Add an independent row■ Text surround■ Image Adaptive■ Hide Elements
Add an independent row
Add two images between
Implement border flashing in JavascriptIn a new project recently, the product manager finds that when the user balance is insufficient, the product manager prohibits the user from selecting and inputting buttons, you should focus your attention on
Css rule and csscssrule are used to dynamically modify css files in js.
_.find(document.styleSheets[4].cssRules,function(cssRule){ if(cssRule.selectorText && cssRule.selectorText.indexOf(".navbar-fixed-top2")>-1){ cssRule.style.position=""; cssRule.
Use the replace method in js to convert a character.
Copy codeThe Code is as follows:Var str = "Guo Zi [1990] No. 12 ";How to add a backslash before "[" and "]" in the variable,
To replace it with this: str = "Guo Zi \ [1990 \] No. 12 ";Copy codeThe
Use timestamp to solve the problem of ie cache and timestamp to solve ie Cache
In development and testing, if you select ie, When you edit a piece of data, you will find that the data in it is the same as before, in this case, the ie cache is
Jquery automatically adds the current date to the date plug-in when loading the page.
The current date is automatically added to the date plug-in when the page is loaded.
The first date: Second date: Tutorial: Does jquery dynamically Add a date
JQuery adds/changes/removes CSS classes and determines whether CSS already exists. jquerycss
You can also use Javascript to change the page element style. But is there any more concise method? The answer is yes. Now with jQuery, it seems that
JS cannot use jquery to obtain IP addresses across regions. jsjquery
Get the IP address. JS can also get the client IP address. As we all know, JS cannot cross-origin. So with jquery, you can actually get the IP address. The Code is as follows and
PHP combined with JQueryJcrop to implement the Avatar image cropping instance code
I found some websites have the image cutting function, and it was quite dazzling. Later I found a plug-in dedicated to image cropping, jquery. jcrop. min. js. You can
JQuery's return to the top function is suitable for browsers that do not support js. jquery returns to the top
Many websites have the result of returning to the top. This article describes how to use jquery to return to the top button.
First, add
Js traversal subnode subelement attributes and methods, js ideas
Copy codeThe Code is as follows:// Delete all child nodes before adding a child node
Var usernameEle = document. getElementById ("username ");Var childs = usernameEle. childNodes;For
Use JavaScript to draw the line with the mouse.
Untitled 1
JavaScript code is used to implement a layer moving with the mouse ??
Add the following code to the area:Real Image: Javascript source code that moves text with the mouse
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.