Yesterday, we needed to customize the ckeditor editor toolbar and add a plug-in as a requirement. Next I will introduce my recording notes to you, so you can learn it as needed.
1. Download and install ckeditor.
2. Custom toolbar buttons:
You can
Let me introduce you to the specific operation methods and examples of implementing anonymous functions using js arguments. callee. For more information, see.
Recursive Algorithms are familiar to everyone. For example, a recursive function for
If we want to use js to control the display and hiding of div, we can use js to control the style and define the display settings, in this way, you only need to set none and block dynamically to hide and display the div.
Simple pointing to text
To enable the user to enter a URL, we need to verify that the URL entered by the user is correct before the user submits the URL. This JavaScript verification will not confirm whether the URL is valid, but it must be saved correctly. Code
Today, I was told by A friend that I didn't add A window in the title of "A". How can I open all the pages on the page on the new page? I found several practical methods, my personal favorite is the last method.
The first method is implemented using
The original style of ajax is rarely seen now. We all use jquery's ajax directly, because jquery provides a lot of ajax methods, which are easy to use and quick, next I will provide you with some original ajax methods.
Since javascript has various
The core statement for getting the value of the drop-down list using js is: document. getElementById (id). options [Objsel. selectedIndex]. value;, but jquery is simpler.
Js to get the value of the drop-down list
The Code is as follows:
Some may find that the value of FCKeditor1 cannot be obtained after the KindEditor editor is upgraded. I will introduce the solution to this problem.
Code for getting values
The Code is as follows:
Copy code
The above
The program can convert characters, remove spaces in the middle of the characters, and click Bttton to copy the code. Further improvement is required. Please kindly advise. The left and right spaces functions are not completed.
Example:
EXTJS has many iteration methods, such as Ext. each, which you may already know, but there are other unknown and useful methods. First, let's briefly review Ext. each:Ext. each
Apply the same method to members of each array. It is basically a more
Note: The ArrayList object CollegeDepartInfo has the following attributes: stirng college0000title and int CollegeDepartId in javascript: ddlDepart. options [ddlDepart. length] = new Option (n. collegeappstitle, n. collegeDepartId); Option
In js, if you use parseInt ("08"), it is generally considered that 8 will be returned. However, 0 is actually returned, but 8 is returned with Number ("08.However, parseInt ("08", 10) can return 8.To clarify the differences between the two,See the
The following code is used to obtain the request Parameters in JavaScript in the tutorial www.bkjia.com:
Copy to ClipboardReference: [www.bkjia.com] UrlParm = function () {// url parameter
Var data, index;
(Function init (){
Data = [];
Index =
1. WebService. asmx:Process business data and generate DataSet (XML) data in the GetDataSet () method for JqueryRequest. aspx to call. The Code is as follows:[WebMethod]Public DataSet GetDataSet (){DataSet ds = new DataSet ();DataTable dt = new
I. AjaxSample. aspxProcess business data and generate XML data for JqueryRequest. aspx to call. The Code is as follows:Protected void Page_Load (object sender, EventArgs e){String uid = Request. QueryString ["username"];String pwd = Request.
Let's take a look at a simple piece of JavaScript code returned by jquery ajax.Code:
Copy to ClipboardReference: [www.bkjia.com] function getReturnAjax {
$. Ajax ({
Type: "POST ",
Url: "ajax/userexist. aspx ",
Data: "username =" + vusername.
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