Common Knowledge

1.

Obtaining and transmitting the map data

Reception == == value acquiring map

$ {Map [ 'name']} -> not without single quotation marks

${map.name}

 

Reception == == value transfer map

map['name']

map [name] -> map.name is not acceptable

 

Note: The shape parameter can be defined as an interface map type

 

2.

Although you MyEclipse Debug mode is turned on, but you modify the mapping file still have to restart the server;

 

3.

Output templates as follows:

System.out.println("cfieldList==》\n" + cfieldList);

 

4.

Close the current pop-up layer, and refresh the parent window

 

var index = parent.layer.getFrameIndex ();
 // parameter value may be window.name 
            parent.layer.close (index);
            window.parent.location.reload();

 

 

 

 

 

5.

MyEclipse shortcut list

 

+ Shift + Ctrl O useless empty introduced
Ctrl + the Shift + the X-converted to uppercase letters
Ctrl + Shift + Y into lowercase letters
Ctrl + Alt + End Select from the cursor to the last line (under WPS)

 

 

 

 

 

 

6.

layui common operations

class = "layui-side-scroll   " Setting the left menu bar style

 

7.

PowerDesigner , according to the name automatically generated commment script, if there is not change

== Reference blog ==

http://blog.csdn.net/tegwy/article/details/7819319

 

8.

Dynamic new row in the table

function addLine(){
var $tr=$("table tr:hidden ");

var content='<tr id="hiddenTr " style="display:none; "> '
+ $tr.html()+'</tr>'; 

       $("#attrTable ").append(content); 
       
         $tr.css('display','table-row');
//设置隐藏的tr显示出来,不能设置为inline或block,那样会导致该tr只有一列;
       
       }

 

注意:将隐藏的tr显示出来要用到 style="display:table-row;"

 

8.

设置第4列的所有元素靠右

 

    $('tr').each(function() {

$(this).children('td').eq(3).css('text-align', 'right');

            })

 

 

 

 

注意:col只可以控制宽与高,样式不能设置(文字居中)

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/syjp/p/11081845.html