It is well known that when accessing a variable or method of a class, if the class is not initialized, a class is initialized first.However, when the variable of this class is final, it is not necessarilyTake a look at the following examplePackage Com.lala.shop;import Java.util.random;public
inside") in the second project:
Import-package: org. osgi. Framework; version = "1.3.0 ",Org. teamlet. samepackage
5. Add a call
The START () method in the activator of org. teamlet. osgi. Test in the second project calls sameclass.Public void start (bundlecontext context) throws exception {
Sameclass SC = new sameclass ();
SC. toshow ();
}
6. Execute
7. Conclusion
If a bundle introduces the same package as an internal package, it uses the imported package instead of the internal package.
The
This article describes the PHP class automatic loader implementation method. Share to everyone for your reference. Specifically as follows:
Here autoload can be compatible with the following formats:
Cache_file_jsonclass_xxx.phpxxx.class.phpxxx.php
The PHP code is as follows:
function __autoload ($className) {
$dirs =explode (' _ ', $className);
$fileName =array_pop ($dirs);
Print_r ($dirs);
$fi
This article mainly and everybody introduced thinkphp frame page class and Bootstrap page (beautify), need friend can refer to, hope can help to everybody.
Bootstrap how to use the style here to write the link content
2. Related Controller code
All public function All_news () { $Article =m ("article"); $where [' Article_type ']=1; The total numbe
Text text colorIf the text is a link, the text is dimmed when you move the mouse over the linked text. text-muted: Grey. Text-primary: Light Blue. Text-success: Green. Text-info: Dark blue. text-warning: Orange. Text-danger: RedText position. Text-left: Text left Justified. Text-center: Text Center alignment. text-right: Text right-alignedWrap text. text-justify: Text alignment, out of screen part text wrapping. TEXT-NOWRAP: Paragraph beyond the screen part does not wrapText case. text-lowercase
1. Contextual text colorFonts in various shadesPclass= "text-muted">Bootstrap Video TutorialP>Pclass= "Text-primary">Bootstrap Video TutorialP>Pclass= "Text-success">Bootstrap Video TutorialP>Pclass= "Text-info">Bootstrap Video TutorialP>Pclass= "Text-warning">Bootstrap Vide
Solve Some css class conflicts between bootstrap and easyUI ., Bootstrapeasyui
Today, we found that the css classes of bootstrap and easyui have repeatedly used a very stupid solution. Such a trivial issue cannot be searched on the Internet.
I first reference bootstrap and then reference the easy UI.
Original:bootstrapSome of the auxiliary classes that may come in handy in Bootstrap. textThe following different classes show different text colors. If the text is a link the mouse moves to the text that is dimmed:
class
Description
. text-muted
Text styles for the "text-muted" class
. text-prima
Bootstraprow
Cause:
The page is laid out using the Bootstrap raster system. The class col-xs-* has a 15px padding on the left and right. The class has an img element that you want to display on the top side, in this case, you need to add an additional style to the col-xs-* Class: padding: 0px;
If a row
Bootstrap common class name
BootstrapAssign a class name to a label(class name)To generate the effect tag of the corresponding class name.Grid options
row: Line
col-*-*: Column (First*Can beXs [Ultra small]/Sm [small]/Md [medium]/Lg [large]Second*Must be less than 12 [column
In the Bootstrap grid system (source code) There is this paragraph,[class*= "Span"] { float:left; Margin-left: @gridGutterWidth;}To run with recess, you'll see a hint:Universal selectors should be avoided。 This can be said to be a selector problem, but also can be said to be a recess problem, but can be run at the time of adding a parameter ignored.When you write the extension yourself, you will write sim
Cause:The page is laid out using the Bootstrap raster system. The Class col-xs-* has a 15px padding on the left and right. The class has an img element that you want to display on the top side, in this case, you need to add an additional style to the col-xs-* class: padding: 0px;If a row
Base class
. code to display single-line inline code. Pre to display multi-line block code. kbd to display user input code. pre-scrollable height exceeds 340px, scroll bar appears on Y axis
Form class
. table base table margin-bottom:20px, light gray solid line at thead bottom 2px, light gray solid line at the top of each cell. table-striped: Zebra table, interlaced with a light gray background color. ta
Some of the auxiliary classes that may come in handy in Bootstrap. TextThe following different classes show different text colors. If the text is a link the mouse moves to the text that is dimmed:
class
Description
. text-muted
Text styles for the "text-muted" class
. text-primary
Text style
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.