This article mainly introduces how to implement javascript to prevent links in iOSAPP from opening the Safari browser. This IOSAPP is generally a WebAPP. Otherwise, the code in this article cannot be used, you can refer to the previous online
It is easier to control the display and hiding of divs of an id or class. But how to control the display and hiding of text content? The following is an example.
The Code is as follows:
Document. getElementById ('open'). style = 'display: none
Jquery. toArray () is to convert jQuery objects into arrays.
From the source code, we can see that these common methods are directly from the nativeIn javascript, why do I say this?In row 3, this points to the jQuery object at runtime. The call
This article mainly introduces javascript to remove all punctuation marks in strings and extract the regular expressions of plain text. For more information, see use regular expressions to remove all punctuation marks in strings.
The Code is
This article mainly introduces the problem and solution of the onload event in the image in IE, which is a classic problem. In fact, you only need to change the code order to solve it, for more information about how to obtain the image width and
This article mainly introduces the introduction and examples of caller and callee attributes in js. For more information, see
I. caller
Returns a reference to the function that calls the current function.
FunctionName. caller
The functionName
Supports the jQuery File Upload plug-in Uploadify for multi-File Upload. Currently, this plug-in has two versions: Flash and HTML5. This plug-in will better support mobile browsers for HTML5, avoid Apple mobile Safari not supported
Flash, main
This article mainly introduces how to listen to the mouse wheel event in javascript. It describes how to use specific examples and considers different browsers. You can refer to the results we have seen, use the scroll wheel to increase or decrease
Cookie is a variable stored in the visitor's computer. In this example, we want to create a cookie to store the visitor's name. For more information, see
What is cookie?
Cookie is a variable stored on the visitor's computer. This cookie is sent
The js function has an array arguments that stores parameters, therefore, functions supporting default parameter values in js can be implemented in php using another work ing method. It is convenient to set the default value for parameters when
This article mainly introduces the implementation code of disabling the Enter key form for automatic submission. For more information, see
The Code is as follows:
// Disable automatic submission of the Enter key formDocument. onkeydown =
This article mainly introduces the JavaScript character set. For more information about JavaScript, see:
Keywords, variables, function names, and all identifiers must use the same case (generally we write them in lower case ), this is very
This article describes how to get the height of a webpage by js, such as the visible area, body, and screen resolution. For details, refer to the visible area width of the webpage: document. body. clientWidth.
Visible area height: document. body.
This article mainly introduces how to convert JavaScript amounts to lowercase letters in upper case. For more information, see , I have compiled the following code and shared it with you. I hope it will be helpful.
The Code is as
By default, the system uses the Tab key to switch the focus of the page element. have you ever wondered whether the Enter key can also be used to achieve this function, in addition, it has a good user experience. Next, we use Jquery to implement the
This article mainly introduces the example of applying a form submitted by ajax to implement a new registration without refreshing the web page. For more information, see
The Code is as follows:
Var xmlHttp;UName () // when the user name loses
This article mainly introduces two instances for judging and verifying MAC addresses in JS. If you need them, refer to method 1 below:
The Code is as follows:
Var temp =/[A-Fa-f0-9] {2}: [A-Fa-f0-9] {2}: [A-Fa-f0-9] {2}: [A-Fa-f0-9] {2}: [A-Fa-f0-9
This article describes how to use bind to specify the receiver in javascript. For more information, see
The Code is as follows:
Var json = {JArray: [],JPush: function (c ){This. jArray. push (c );}}Var examp = ["123 ","~ "," 456 "];
Use the
This article describes how ExtJS4 allocates different tree menus based on different roles after logon. If you need them, refer to the previous one. After setting cookies, extract them.
The Code is as follows:
Var userName = Ext. util. Cookies.
This article mainly introduces the specific implementation of url encoding and decoding for Baidu mobile edition. For more information, see
The Code is as follows:
Var decode = function (m ){Try {M = decodeURIComponent (m );} Catch (e ){}Var s
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