This article is translated from the Bada development website of Samsung.
Javascript debugger (very friendly, Just Like Chrome's debugger ..)
You canEmulator or targetDeviceUseJavascript debugging tool to debug your web
Use JavaScript to obtain the IP address and MAC address of the IE Client
In a B/S system, we often need to obtain some information about the client, such as IP and Mac, for identity authentication. In ASP. net, it is easy to get the MAC address of
Handle, handle
There are two types of handles in V8:
1. Local handles: Local handle. The local handle is on the stack and deleted when the specified destructor is called. The survival time of these handles is determined by the handle range. The
The tree control has a unique ability to expand and collapse branches. It can display a large amount of information in a small space and clearly convey the hierarchical relationship between data. Users familiar with graphic user interfaces can use
Javascript will inevitably be used for BS development, and each browser has different support for JavaScript. This requires our programmers to be compatible with them, otherwise Some browsers will not be able to run our code. The customer's
Hashtable implementation in Javascript
JavaScript does not have a hash table (hashtable) like C # or Java ),However, arrays in Javascript only have simple functions similar to 'hash table', as shown below:
VaR arr = new array ();
Arr ['item1'] = '
Update: I forgot to add an overview of the generic function. Just now. In addition, the leader of chenxiaoshun raised a very good question: What is the difference between generic function and function overloading? The difference is that the calling
In principle, do not bind a click or double-click event to the same Dom element, which may inevitably affect each other.
I encountered the following problem: a click and dblclick (jquery used) are bound to the same Dom element. In Firefox,
The most common JavaScript error is 13. You may have to make these mistakes. We describe these bad habits and come up with solutions to help developers.
1. For... in array iteration usage of for... in to iterate Arrays
Example:
var myArray = [
This time is too busy. I have no time to write down my work experience. Today, I will take the time to explain some of the difficult problems I encountered during my work two days ago and the solutions:
Problem description:After the embed tag
/**//*
* This function parses comma-separated name = value argument pairs from
* The query string of the URL. It stores the name = value pairs in
* Properties of an object and returns that object.
*/
Function getargs ()...{
VaR ARGs = new object ();
06. Bridge Mode of JavaScript design mode ---- Bridge
This article mainly introduces the Bridge Mode in the design mode through examples.
When designing a javascript API, you can use this mode to weaken the coupling between it and its classes and
I can't understand many explanations on the Internet. I want to know the principle... This article should be thorough.
Query segment: View plaincopy to clipboardprint?
(Function (){
// All jquery implementations are ignored here
})();
When
The idispatch interface is mainly used in traditional automated programming, such as Microsoft Visual Basic. The client can call all the attributes and methods of the COM component by obtaining the idispatch interface of the COM component. However,
Basic JavaScript Data Structure
The programming of the scripting language provided by JavaScript is very similar to that provided by C ++. It only removes common errors such as pointers in the C language and provides a powerful class library. For
Media Player Control
Player. Controls. Play (); play
Player. Controls. Stop (); stop
Player. Controls. Pause (); pause
Player. Controls. currentposition: returns the current time and position of the playback file (in seconds)
Player. Controls.
Reference
Aaron's JavaScript definition object writing (Arrangement)
Several simple methods for defining objects in Javascript
1. constructor method. All attributes and object methods are defined in constructor.
Advantage: Dynamic Transmission
Summary: The Use order of contemporary websites and web tends to rely on a large number of clientsJavascriptTo provide rich interaction. In particular, we do not discuss how to send asynchronous requests from new pages to data or echo them from
Windows Media Player
HTML:
// media file address // audio channel 0 full channel,-100 left channel, 100 right channel // Number of playbacks // whether to play automatically-1 Yes, 0 No // volume '); // whether to mute-1 Yes, 0 No // display all
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.