Import:
Copy Code code as follows:
Export:
Copy Code code as follows:
function Automateexcel ()
{
Start Excel and get Application object.
var oXL = new ActiveXObject ("Excel.Application");
A very simple example to determine whether IE browser version is too low
Example structure is as follows, in fact, a page with the introduction of jquery can be, by the way a standard structure (note that the IE6 and IE7 version of the lower case to
Now there are probably several browsers, individual preferences are also different, so the use of different browsers! The people we develop often have to add a judgment that it is impossible for certain functions to be used properly. If you don't
Although JS provides a function to compute the number of bytes in a string, it does not correctly compute the number of bytes of Chinese characters, such as document.form1.username.value= "I am Chinese", Document.form1.username.value.length returns 5
The following is the JS code::
@ Author YHC:
Copy Code code as follows:
function Getcurrentmonthlastday () {
var current=new Date ();
var currentmonth=current.getmonth ();
var nextmonth=++currentmonth;
var nextmonthdayone =new
51MAP provides a map interface for free The following are call interfaces and implement geographic tagging, storage, modification, and echo features.51 Map URL: http://api.51ditu.com/
Introducing in a Web page
Copy Code code as follows:
var wwip= "";
$ (function () {
$ (document). Ready (function () {
$.getjson ("http://smart-ip.net/geoip-json?callback=?")
function (data) {
alert (data.host);
Wwip=data.host});
This problem to
Shortcut keys in the daily use is still quite a lot of, for example, familiar paste Ctrl + V, copy Ctrl + C, use shortcut keys to improve our efficiency, especially when we are familiar with an operation, it will become very convenient to use it
Recently write something, more annoying, a pop-up layer, there are other elements above, the intention is that the mouse left the pop-up layer, perform some action, but in practice, the mouse left the pop-up layer elements, will also activate these
Since ie6,7 does not support json.stringify (JSON), we have to write another function to replace this method. The code is as follows:
Copy Code code as follows:
function Jsontostr (o) {
var arr = [];
var FMT = function (s) {
if (typeof s
Engage in web development, the most headaches is the JS problem, not PHP program development, front-end page, JS really too let people toss, especially JS, you do not know where there will be problems, all kinds of compatibility also need to take
If you use pure JavaScript code without frames, then a cascading menu might be a daunting thing to do, but with the framework, it's easy, and that's the benefit of the framework, which greatly improves development efficiency and is more reliable and
The HTML code is as follows, where the div to drag is the outermost div
Copy Code code as follows:
New user Group
Group name
"
User
Description
OK
Cancel
The JS
A variety of Web sites often see the page scrolling to the viewable area, and then load the corresponding picture resources, what is his essence? This article to analyze is very simple, is to determine whether the current element is in the visual
Keywords: arguments,callee,callerArguments: An argument that represents an incoming functionCallee: Statements representing functions and body of functionsCaller: Represents a function that calls the functionArguments
The object represents the
Remember the interview when you have encountered such a problem: there is a table, and then there are 4 input boxes, a merge button, the input box is this, from the first few lines to the first few lines, from the first column to the first few
The hasOwnProperty function method in JavaScript is to return a Boolean value that indicates whether an object has a property of the specified name.
How to use:Object.hasownproperty (Proname)
Where the Parameter object is a required option. An
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