Debugging JavaScript is a very troublesome task. Although there are many useful debugging tools, sometimes you want to track value changes, but you do not want to interrupt script execution, you do not want to use alert to display value information.
JQueryDialog (JS modal window, DIV that can be dragged) implementation code
Call
Interaction
As shown in, this is basically the complete logical process of JQueryDialog.1. When you click the "Submit" button in the modal window, call the
After jquery is upgraded to 1.4, jqDrag cannot be dragged.
The Code is as follows:
(Function ($ ){$. Fn. jqDrag = function (h) {return I (this, h, 'D ');};$. Fn. jqResize = function (h) {return I (this, h, 'R ');};$. JqDnR = {dnr :{}, e: 0,Drag:
Next, let me talk about a problem with Extjs. I hope you will be able to give me some advice after reading this article. I would like to thank you! I believe that you have used code similar to the following when developing Extjs:
The Code is as
When I was doing JavaScript, I found that there was always an error: "unfinished String constant ". when I found it myself, it should be caused by special characters when passing parameters. I also looked for it online, and there are many such cases.
Jquery's common operation methods include the release of many files, but they are different from each other. You can refer to the articles published before the release of the script. Operation drop-down list
Add Option List
$ (This). get (0).
The operation function code of JS and framework pages is mostly used to control the framework pages. Generally, there are many operations in the background.
1. Refresh the framework
The Code is as follows:
Onload = function (){Try{Parent. Link.
This article begins with the best part of Extjs. The data model of Extjs is divided into the following parts:
Data Record
A record in a dataset, including the data definition and value. It is equivalent to an object class.
Data Proxy
The proxy used
A simple example shows how to use JavaScript to create private variables and methods in a class.
Summary
Private variables are declared using the 'var' keyword inside the object, and they can only be accessed by private functions and privileged
A user loads a style randomly during each access, keeping Weibo visually fresh. Although the ideas and implementations are relatively simple, I still want to record them and share them with you.
[Clear requirements]
The ult.css sample table shows
When I update an article on my website, a common problem is that the illustration of the article is too wide, and the entire webpage is distorted. If you scale each illustration before inserting it, this is too much trouble. I encountered this kind
Because content deletion is very important, you need to confirm the deletion in general systems to avoid accidental deletion. The specific method is as follows. For details, refer. Method 1: It is quite helpful. The page can be opened only after
The core code of the four levels of interaction to achieve the effect. For more information, see.
The Code is as follows:
Var startyear= 1980;Var EndYear = 2500;Function MonthAndDay (){This. initDDL = function (objYear, objMonth, objDay, hidYear,
Javascriptjson implements code for controlling the maximum length of textarea. You can test the Code if you need it. The code is beautifully written. If you just want to limit the number of words in textarea and do not want to write too many words,
In fact, jquery's ajax function is used to obtain remote xml files and read the code of the specified content. It is a good reference for anyone who learns jquery.
The Code is as follows:
The user's client detects the image size. In actual applications, server-side testing is still necessary.
var oForm = new Object (); var oImage = new Image (); oImage. attachEvent ('onload', getSize); oImage. attachEvent ('onerror', doWithError);
It's a very simple code, but when I operate it myself, I find that I still don't know much about it. I need to discover problems only when I use multiple practical applications ~~ Jquery's selector is very powerful. I found it only after a long time
Three methods for declaring functions in JavaScript each function is an object (1)
I. Declaring a Function)
Method 1: function functionName ([parameters]) {functionBody };
Example D1
The Code is as follows:
Function add (a, B){Return 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