CSS knowledge point supplement, css knowledge point
I. css box model Overview
The inmost part of the element box is the actual content, and the content is directly surrounded by the padding. The padding shows the background of the element. The edge of the padding is the border. The outer border is the outer margin, and the outer margin is transparent by default, so it does not block any subsequent elements.
1. css padding attribute (padding)
Defines
Struts2 file upload and download supplement question, struts2 File Upload
The previous book mentioned the upload and download of the strust2 file. The last time the file was uploaded, it was silly to store an absolute path in the database. It was helpful to test the image retrieval on the local machine, A little stunned, I think the file upload and download is not the case, but today, when I package the project into a WAR package and run it today, I c
the classes and methods that are loaded is in the method Area. The constant pool is filled with objects of the basic type wrapper class such as Integer.Byte.Short. and the string that Appears.Each time the new object is allocated to the object, it is assigned to a header address in the heap memory. Each time you use the method, the memory is opened in the stack memory to use. the pointer and use of the variable in the Method. when the method ends, the stack memory is closed at any Time.The JVM
Swift syntax Summary (1) and swift syntax summary supplement
1. The optional type is a type, String? Is Optional 2. ?? B ?? C If a has a value, return a, a is nil, return B, and B is also nil. The previous overall result is nil, and return c. Condition ?? All the preceding operations must be optional ,?? The following types must be the same ?? The preceding results are consistent. The result is equivalent to the "a!" operator! = Nil? A! : B3. the obje
print (' F1A1 ')4.2 Static methodsCharacteristics:
Save in class
Caller does not need to create an object
You can have any of the parameters
Class F1: @staticmethod #声明是静态方法 def A1 (N1,N2): #无需传入对象, but can declare multiple values print (' Xiaogao ') #类名.方法名 方式调用role: When the object does not need to pass in parameters, to create the object is a waste of resources, so it is better to directly call the class name, which is similar to the functi
statement. So the following two execution results are different:Alert (eval ("{}");//return undefinedAlert (eval ("({})");//return Object[object]2. For the JSON string returned by the server, if the jquery asynchronous request sets the type (typically this configuration property) to "JSON", or uses the $.getjson () method to get the server back, then the eval () method is not required. Because the result is already a JSON object, just call the object directly, here $.getjson method as an exampl
__str__ effectOriginally the Print class object is the printed memory addressBut after adding the __str__ parameter to the classRe-printing This class object is showing return in __str____del__ effectExecutes when an instantiated object is freed in memoryItem operationOperation of item by set get DelThe ultimate goal is to manipulate the variables inside the class like a dictionaryWhen this is done, different item is triggeredClass A:def __init__ (self,name):Self.name=namedef __getitem__ (self,
a parameter, form a AO.age=undefine; 1-2, receiving parameters AO.age=5; 1-3, analysis variable declaration, there is a var age, discovery AO there is a ao.age, do not do any processing 1-4, analysis variable declaration, there is a var Sex, forming a AO.sex=undefine; 1-5, analysis function declaration, there is a function age () {} declaration, then the original age cover into ao.age=function () {}; second execution process: 2-1, when performing the first console.log , the current AO.ag
In vue:
1. Pass the parent level to the child level: the parent level V-bind has an attribute that stores the data (value) in it, and the props in the child level JS receives an array [] for transfer.
2. child level passed to parent level: parent level @ (V-on) a function func_father, child level also @ A function click, trigger the parent function func_father in the child level JS letter number, in this way, sub-level operations are performed, and the parent level changes.
1
Communication bet
Supplement the URL Spoofing with treasure! Processing of data submitted by POST method!(This is also awkward !)
First, we will build an environment:IIS proxy for the jsp page under Resin! (Resin is a Java application server)
1. Obtain Resin:Http://www.caucho.com/download/resin-2.1.16.zipDecompress a directory after the download, for example:E:/Resin/resin-2.1.16/
2. Configure Resin (the Java SDK configuration will not be described in detail)Open in a
obtained in development, so the Const modifier key means that key is read-only and no modification is allowed.Static NSString * Const KEY = @ "name";If const modifies *key1, which means *key1 is read-only, Key1 can still be changed.static NSString Const *KEY1 = @ "name";```# # # VI, extern and const combined use* use scenarios in development: the same string constants used frequently in ' Multiple files ' can be combined with extern and Const. * Reason:* Static and const combinations: you need
Object-Oriented supplementMethods of __tostringClass ren{public $name; Public Function __tostring () { return ' This is human, there is a member variable name representing the name '; }} $r = new Ren (); Echo $r;The ToString method is called automatically.Methods for cloning objectsClass ren{Public $name;Public Function __tostring () {Return "This is the Ren class, with the member variable name representing the name";}When the object is cloned, it is automatically calledPublic Fu
(1) A cookie value that supports only string types.(2) The cookie key can be written as subscript array form.Beifen. Php1PHP2 /**3 * @ The first value is a name4 * @ The second value is ' value '5 * Name if existing in the original file, then value will overwrite the original corresponding value6 * If value is an empty string, it is equivalent to deleting the value corresponding to name7 */8Setcookie ('Class[name]','Ligong');9Setcookie ('Class[nianling]','188');Ten b.php1 PHP 2
Directory:Content:1, Render_to_reponse ()Unlike Render,render_to_response () do not include request, write files directly in the template2, locals ()If there are too many variables in the function in the views file, you can add the render (Request, ' index.html ', locals () directly inside the render or render_to_response (). This allows you to write variable names directly when rendering in the front-end interface Python Learning Note Week 65th (Django Sup
Add Dependency: Pom.xmlThis is now possible under eclipse, but it has no effect under idea, and is resolved as follows: Pom.xmlThis article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1956964springcloud--Supplement: Hot Deployment
A bit, a relationship with bytes.Bit: is the smallest representation unit of the computer.Bytes: is the smallest storage unit of the computer.1 bytes (bytes) = 8 bits (bit)Format:Print (bytes (' character ', encoding= ' Utf-8 ')) file read file by defaultOther functions of the second stripStrip remove the space on both sides, line breaks, tabs, and so on, you can also specify the deletion characterA= ' dsad ' Print (A.strip ()) b= ' \ndsfsadagh\t ' Print (B.strip ()) print (123) c= ' FSDFDS
are always in front of elements that are lower in stacking order.Test z-index 13. Transparency: opacity:0.4; 14. Border Radian: border-radius:50%; 15. Remove the logo in front of the list: List-style:none; 16. Align top and left tops: padding:0; margin:0; 17. Font bold style: font-weight:900; 18. There are several logical expressions to note, the following and JS ,| | The usage is the same as the print (3 and 5) #两个为真才为真 Print (0 and 3) #0是假就不判断后面了, which is directly false print (0 or
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.