Learn Extjs5 with me (06--Use the icon font to beautify the button)
in Sencha's example, there are examples of using icon fonts to beautify the buttons, which are convenient and uniform in style, for example:
the use of the above icon font is also very simple, just download the font awesome CSS and icon files, put in the project will be. Some icons:
The Font awesome website is: Click the Open link. After entering the website, do
()) # Get the text This string format self.list1.append (Self.val.get ()) # Appends text to List1, where Val.get is the list of contents in the text Self.list1.append (a Ddnum) # "2 +" Print (SELF.LIST1) # need to determine if the operation symbol is pressed Self.val0.set (self.list1) self.operation_s IGN = True self.sign1 = False #等号操作 def eq_operation (self): try:if self.sign2 = = true: If Self.sign1 = = true: #sign1 to True can be equal to Self.list1.append (Self.val.get ()) #
Automatic assembly has also been written before. It's just a supplement.Before, for the property to be referenced, you must write the name,Original configuration:When you want to reference the Dept object inside the EMP object, you need to explicitly use the "ref" attribute to find the specified name, but you can also use the type'sAutomatic assembly.For automated assembly:Autowire:bytypeThe assembly process at this time is not explicitly written to refer to the configuration of the dept, but ca
CSS Processing1.CSS styleGet CSS styles for JQ objects, CSS ()CSS ({":"}) Setting the JQ object's CSS style is equivalent to the style () method of the JS object2. LocationOffset (). Top (left) gets the coordinates of the object relative to the upper-right corner of the browserPosition (). Top (left) gets the coordinates of the object relative to the upper-right corner of the positioned ancestor tagScrollTop () Gets the object has scrolled high3. DimensionsHeight () to obtain the effective heigh
': ' Add ', ' ID ': ' ID '}); --Set multiple properties with JSON format data at the same time! Jqobj.removeattr (");Jqobj.addclass (' Add ');Operation Style: Jqobj.css (); One get, two settings, multiple in JSON format!Action event: Jqobj.click (Function () {});Create Delete: jqobj.html (' Jquary: first introduced jquary.js file to use (bootstrap and other frameworks have jquary.js files to use)!Page load Complete:Js:window.onload=function () {};Jquary:$ (document). Ready (function () {})Mode
//440Availheight-> get a high//856 of the monitor (less the height of the bottom taskbar)Location: Address barPropertyUrl= "Http://www.baidu.com.index.php#abc?name=Tomage=18"Location.hash-> gets the anchor point of the current address//#abcLocation.host-> gets the host name of the current address//www.baidu.comLocation.url-> Get current Address//http://www.baidu.com.index.php#abc?name=tomage=18Location.pathname-> gets the file name of the current address//index.phpLocation.protocol, get the curr
' Lanhan '. Lower ())#将大写变小写Print' Lanhan '. Upper ())#将小写变大写Print'\ nLanhan '. Lstrip ())#去掉最左边的空格或回车Print' Lanhan\ n'. Rstrip ())#去掉最右边的空格或回车Print' +++++++++++++ ')Print' Lanhan\ n'. Strip ())#去掉最左边或最右边的空格或回车Print'-----')p = Str.maketrans ("ABCdef",' 123456 ')#将字符串lanhan用对应关系替换a用1替换, B replaces with 2, and so on (for random passwords)Print"Lanhan". Translate (p))Print' Lanhan '. replace (' A ',' A ', 1))#替换字符, 1 is only a replacementPrint' Lanhan '. RFind (' A '))#找字符的下标 (if you have the same
of the parent tag positioning, the final label or body, there is no position of itself!Relative: Relative to its own location, position also! Often used for fine tuning (parent tag)!Added to the parent tag to specify the absolute! of the sub-labelPs: With FN+F12 can take off the picture, try!Label properties (display):①block②inline③inline-block④none (Nothing, no position, equivalent to delete code)Similarly there is a: visibility:hidden-location is still there!Box Model:①padding:top/bottom/left
is sent to the server in JSON form, and at first I tried to send a format package to the server via curl, application/json4:text/xmlSending data to the server in XML form Summarize:Did you find it.Only data can be read in PHP $_POST application/x-www-form-urlencoded , $_FILES only type data can be read multipart/form-data .Why, just think about the difference between these two types of delivery.What should I do with the transfer of other formats?So, to read text/= fopen (' PHP://input ', ' R
processed with all its events and a copy of these clones is selected (in short, The copy has the same event handling power as the true one) $ (this). Clone (True). InsertAfter (this);})Third, the modification operation Knowledge Point 1:Grammar:$ (selector). replacewith (content);Replaces all matching elements with the specified string, JS object, and jquery object.Replace all H5 titles with a label $ (' H5 '). ReplaceWith (' Knowledge Point 2:Grammar:$ (' Explanation: Replace All. Replace all
(HTML cuts (merges) a number of consecutive whitespace characters into one).XML wraps a line in the LF store.(9) XML naming conventionsXML elements must follow the following naming conventions:
Names can contain letters, numbers, and other characters
Names cannot start with numbers or punctuation marks
The name cannot start with the character "XML" (or XML, XML)
Name cannot contain spaces
You can use any name without a reserved word.(10) displaying XML using CSS(11) Ge
I C M P is often considered as an integral part of the I P-layer. It transmits error messages and other information that needs attention.I C M p messages are usually used by the I p layer or higher level protocol (T C p or u D p). Some I C M p messages return error messages to the user process.I C M p message is transmitted inside the I P datagramI C M p message is shown in format 6-2. The first 4 bytes of all messages are the same, but the remaining bytes are different.The Type field can have 1
First, the memory partition of the JVM To understand the memory storage of an array, first understand the overall memory partitioning of the JVM, see 04JVM memory detail Second, the array in the JVM storage detailedIf we have the following code:In the above code, the process of creating an array can be divided into three steps:1. Declare an array of type int ages int [] ages;2. Initialize array new int[]{10,20,30} in the heap;3. Assign the address of the initial array to the ages variable I
Original: MVC validation 06-Custom Error messageThis article experiences custom error messages. System default error message In MVC validation 02-Custom validation rules, message validation, we've customized a class that validates email. If the input message format is wrong, the system default error message appears. Effect: To modify the error message by errormessage "email format error")] "Mail")] Public string Email {get; set;}Effect:Overriding th
Java Design pattern Learning 06--static agent and dynamic proxy
First, the agent mode
Provides an agent for an object to control access to this agent. The proxy class and the delegate class have a common parent or parent interface, so that proxy class object substitution can be used wherever the delegate class object is used. The proxy class is responsible for the preprocessing of the request, filtering, assigning requests to the delegate class proce
SolidWorks two times Development -06-add fit in assembly
After three days of tossing and finishing, the functional modules of the plan were finally completed. Automatically determine the insertion of suitable parts in an assembly and add a fit.
In the previous articles I have basically explained how to get the data information of the parts, how to insert the parts, how to get the selected features, etc.
The following only
meet storage needs--Convert characters to digital type storage--Use unsigned storage for unsigned data "save one-fold space"--Avoid TEXT this type of data--suggest separating into a separate table--It is recommended to define all columns as not NULL--Special handling during operation--Not recommended storage time type is string, waste--Recommended to use Dataetime/timestamp storage--financial-related, must use decial exact floating-point type--calculation without loss of precision--can save lar
|
+------+-------+------+
| 1 | MJJ | |
| 2 | Wusir | |
+------+-------+------+
2 rows in Set (0.00 sec) PS1: If only the table structure, do not log #在db2数据库下新创建一个b2表, give a Where condition, condition is not set, condition is false, copy table structure
mysql> CREATE table b2 select * from db2.a1 where 1>5; To view the table structure: # view table structure
mysql> desc B2;
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Ex
Label:To add filegroups and data files to an existing database several ways and steps:The first: Add filegroups and data files under views.Steps to add a filegroup:Right-click the database point property that you want to add a filegroup to, and then click the file group to add it.Steps to add a data file:Below you can click Add File, name on it.The second type: Use SQL statements to add filegroups and data files to the database.Use E_market
--add filegroup FG1
alter DATABASE e_market add FILEGRO
following four types are available. 1. Full backup: Backs up all contents of the entire database, including transaction logs. A full backup is a one-time backup of the entire database to the destination address, which is also restored once from the backup device. 2. Differential backup: Backs up only the portions of the data that have changed since the last full backup. 3. Transaction log backup: Backs up only the contents of the transaction log. 4. File and filegroup Backup: If the databas
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.