Using JavaScript in HoTMetaL7. How to identify all predefined macrosHoTMetaL PRO 6.0 defines several internal events that can trigger the corresponding macros. The macros are:OnAction: When the corresponding menu is clicked, the macro is
jquery is a new tool I've discovered recently. The jquery development team described jquery as "a fast, concise JavaScript library that simplifies HTML document checking, event handling, animation, and adds Ajax interaction to your Web pages."
So to speak, only a solid JavaScript skills, to be able to use a variety of JS library, and then get to the point!1. Let's talk about the efficiency of jquery . He is 4 times times slower than the standard JS Dom at the speed of the selector (the
Copy Code code as follows:
/*
Factory---Create and return a factory function for a particular type of object (factory functions)
*/
function Createcar (color,doors,mpg) {
var tempcar = new Object;
Tempcar.color = color;
tempcar.doors =
Create an Object
Java code
Copy Code code as follows:
Use JSON (JavaScript object notation) to create objects with the same effect as above.
Java code
Copy Code code as follows:
function sayloudly () {
Copy Code code as follows:
/**
* @author Supersha
* @QQ: 770104121
*/
var cssquery = {
Parent: The reference used to store the parent node of the current node
Parent:document,
Select:function (SELECTORSTR) {
var
The window.open () method opens a new window in which the Document.open () method opens a new document in which the write () or Writeln () method can be used to write the content, and its syntax is:
Onewdoc = Document.open (smimetype[,
To do the conversion of the Chinese and English, to get the exact parameters and take out, so do a simple HTML in the use of JS to get the address bar of an object.
There are three ways:
1, request. QueryString ("Parameters")//Gets the specified
To get the child nodes of an element node
1, get all the child nodes of the ID
var Citynode=document.getelemnetbyid ("")
2, the ChildNodes method of element node can be used to get all the child nodes of the specified element node.
Background
In September 2015, Nginx announced support for JavaScript-like languages. This means that developers can more easily and freely control the world's best HTTP and reverse proxy servers, and on top of this can derive more useful and
General Introduction
Drag-and-drop changing element size adds some functionality to the simulation drag
Drag and drop change element size principle
First of all, the box needs to know that we want to change the size of it, so I set a range for it,
Don't say much, see instance code
Front-End development
JS control timed execution, at regular intervals
Background query execution request 1min, ajax_wx_payment for method name
setinterval (ajax_wx_payment,1000*60);
&L T;meta name= "Copyright" content= "This page belongs to prcss all.
All Rights Reserved "/> prcss tabs www.jb51.net home &L T;div class= "JJ" > Hey, ignore div original class value. Testing continues to disregard H3 original class
It's a good one. The code that is used to check whether the character entered is a number is not a common way of writing.
untitled document
;/body>
[Ctrl + A All SELECT Note: If the need to introduce external JS
Recently encountered a requirement to pass in a string, insert a space every three characters
Cases:
Incoming abcd1234
Output ABC D12 34
Think for a moment, ready to write a function as follows
Copy Code code as follows:
function
The special characters in the brackets [] are not escaped, for example [/], [.], [*], [?], [+], all of which can directly match the corresponding characters \. *?+. Here is the test result:
So,/[\d.] /This regular expression is actually a
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service