2014-02-09
Preface:
After the first two days of work, mainly to adjust the working condition. The project is not very tight, taking advantage of the weekend to meet some of the year before some of JS and jquery some of the questions to sum up. This is mainly about the Extend method of JQuery and (function ($) {}) (jquery), as well as some related knowledge. 1. The difference between substring and substr in JS
The substring method was used in the pro
Last two articlesArticle, We can see that every time we want to add a sharing method through the jquery prototype, we need to use jquery. it is very troublesome to extend FN one by one, jquery. FN. extend provides an extension mechanism to extend an object through one or more sample objects. If no extended object is specified, it will be extended to itself.
JQuery extension extended simple implementation principle of extend, jqueryextend
I believe that every front-end partner is familiar with jQuery. One of its greatest charms is that there are a large number of plug-ins to help us implement various functions more easily.
A few nights ago, when I had nothing to do, I wrote a simple jQuery plug-in by myself. The function was very simple, but it only highlighted the selected elements. However, some of the
Thanks for the reminder of a child's shoes! Say my last essay. jquery plug-in development of the way one can also be used for merging parameters and deep clone, although the way to do a method of a combination of parameters, but not described in detail, so today do a bit of a supplement here!first, merging parametersThe Extend extension prototype for jquery is:Extend (arg,arg1,arg2,......);return value not arg1,arg2 ... Merge to Arg. There are two way
JQuery. fn. extend provides an extension mechanism to extend an object through one or more sample objects. If no extended object is specified, it will be extended to itself.JQuery. extend can also be used through jQuery. fn. extend. It is widely used in jQuery to expand a member of a target object. Extension members co
Explanation of jQuery source code: extend (), tool methods, instance methods, and jqueryextend
This article describes how to interpret the jQuery source code extend (), tool methods, and instance methods. We will share this with you for your reference. The details are as follows:
When using jQuery, you will find that some functions in jQuery are used as follows:
$.get();$.post();$.getJSON();
Some functions
method defined in an interface. For example: People is an interface, he has say this method. public Interface People () {public say ();} But the interface has no method body. The method body can be implemented only through a specific class. For example, Chinese this class, the implementation of people this interface. Public class Chinese implements people{public say () {System.out.println ("Hello! ");}}In Java, implements represents a subclass that inherits from a parent class, such as Class A
valid for each jquery instance.If you look at the jquery code, it's not hard to find.Jquery.fn = Jquery.prototype = {Init:function (Selector, context) {//....};The original Jquery.fn = Jquery.prototype.So, it's an extension to Jquery.prototype, which is adding "member functions" to the jquery class. An instance of the jquery class can use this "member function".For example, we want to develop a plugin, make a special edit box, when it is clicked, then alert the contents of the current edit box.
encapsulation hint: -Walert:function(msg) { -Alert (' System exception: ' +msg); in }, - /** to * Toid: The ID of the form to set the time, + * When Flag:true, set local time format, FALSE, set to universal format - */ theWsettime:function(toid,flag) { * varD =NewDate (); $ //window.setinterval (' $. Wsettime (' +toid+ ', ' +flag+ ') ', 10000);Panax Notoginseng if(flag) { -$ (' # ' +toid+ '). attr (' value '), d.tolocalestring ()); the}Else{ +$ (
Today, installing the WIN7 64-bit system with a USB flash drive "c: \ $Extend \ $Reparse is corrupted and unreadable. Please run the Chkdsk tool "error failed. After longitude Niang found the answer, using the PE system comes with "Diskgenius" hard disk partition tool partition and format caused by. The specific reason is not clear, it is estimated that the old DOS tools on the new machine partition support is not good. Finally enter the PE system, us
Differences between require, load, include, and extend IN Ruby: rubyrequire
Require and load are used to end files, such as. rb. Include and load are used to include modules in a file.Require is generally used to load library files, while load is used to load configuration files.
1. require:Load a database only once. If the database is loaded multiple times, false is returned. Require is required only when the library to be loaded is in a separate fil
/php.ini file to include the extension path and name:
Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/" extension = "teste.so"
13. Restart PHP Service
Service PHP-FPM Restart
14. Using C + + extension functions in PHP
Note: An error occurred when using the extension function:
PHP Warning PHP Startup Unable to initialize module module compiled with module api=20121212 PHP compiled with MoD Ule api=20090626 These options need to match with Unknown on line 0
1. View the path to the data file store in the tablespace and whether it can be automatically extendedSELECT Tablespace_name, bytes/1024/1024 file_size_mb, file_name from Dba_data_files;2. Set temporary data files to auto-expandALTER DATABASE Tempfile '/OPT/ORACLE/ORADATA/TEST/TEMP01.DBF ' autoextend on next 5m MaxSize Unlimited;The extension table times is the following errorERROR at line 1:ora-00376:file 201 cannot is read at this timeOra-01110:data file 201: '/OPT/ORACLE/ORADATA/TEST/TEMP01.D
: return Super. onoptionsitemselected (item); } }Another simple way is to specify the parent activity:android:parentactivityname= "" When the activity is registered, Then you do not need to rewrite the Onoptionsitemselected method to achieve click Back to the parent activity, it is recommended to use the first, because the second return of the animation with the opening of the new activity animation, while not conducive to multiple reuse of activity, If there may be more than on
Preface:Pre-storage is not well planned, business is rapidly expanding, high data security requirements (offsite, more one copy), a lot of demand? NM Doing the work is going to be the pit daddy every now and then.!particularly Real Production ENV 、、、、01, do not restart to identify the newly added hard drive, as we all know Hotplug Storage MediaPerform echo "---" >/sys/class/scsi_host/host*/scanPerform the above re-scan the newly added PV log02, based on the original LVM, using the newly added PV
#import @interface Uicolor (Colorwithhexstrig)+ (Uicolor *) colorwithhexstring: (NSString *) hexstring;@end#import "Uicolor+colorwithhexstrig.h"@implementation Uicolor (Colorwithhexstrig)Get uicolor based on hexadecimal values+ (Uicolor *) colorwithhexstring: (NSString *) hexstring{Remove the spaces at both ends of the string, and take lowercase conversions uppercaseNSString *colorstring = [[HexString stringbytrimmingcharactersinset:[nscharacterset Whitespaceandnewlinecharacterset]] uppercasestr
multiple remote libraries (you can differentiate it by using a keyword before the namespace)The following link is a description of the remote library interface implemented by other high-level languages, as the principle is similar, it is no longer one by one explained.java:http://code.google.com/p/jrobotremoteserver/perl:http://code.google.com/p/plrobotremoteserver/. net:http://code.google.com/p/sharprobotremoteserver/Summary:With the remote library interface technology, we can almost glue 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.