jquery
get elment from html document
float:left put next element it to left side
修改页面的外观
$("ul>li:first").addClass("active")
响应用户操作
$("#div.show-details".click(function(){}))
动态效果
$("#div.details").slideDown();
异步获取server的消息
$("div.detail").load('more.html #content')
总是面向对象的集合
闭包
selector
标签名 <br><span class="fontstyle0">$('p')</span> <br style="line-height: normal; text-align: -webkit-auto; text-size-adjust: auto;">
id
<span class="fontstyle0">$('#some-id')</span> <br style="line-height: normal; text-align: -webkit-auto; text-size-adjust: auto;">
类 <br><span class="fontstyle0">$('.some-class')</span> <br style="line-height: normal; text-align: -webkit-auto; text-size-adjust: auto;">
否定式伪类 $("selected-plays li:not(.horizontal)").addClass("sub-level")
属性选择符 [title]<div>{</div><div>color:red;</div><div>}</div>
<span style="margin: 0px; padding: 0px; border: 0px; font-size: 14px; color: rgb(0, 0, 0); font-weight: 800; text-align: left; background-color: rgb(249, 249, 249);"> sibling selector </span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0); font-family: Consolas, "Courier New", Courier, monospace; font-size: 12px; text-align: left;">h1 + p {margin-top:50px;}</span>
CSS
样式分4种:内嵌样式,内联样式,内部样式,连接样式
<link>标签将外部的CSS样式文件链接到页面
样式
背景 backgroundkground
文本 font-style font-family
链接 a:link a:hover a:visited a:active
表格 <span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0); font-family: Consolas, "Courier New", Courier, monospace; font-size: 12px; text-align: left;"> border-collapse</span>
轮廓outline-style
css定位和浮动
static
relative
fixed
absolute
font-weight 属性设置文本的粗细。
font-size 属性设置文本的大小。
a:link {color:#FF0000;} /* 未被访问的链接 */a:visited {color:#00FF00;} /* 已被访问的链接 */a:hover {color:#FF00FF;} /* 鼠标指针移动到链接上 */a:active {color:#0000FF;} /* 正在被点击的链接 */
样式
背景 background
文本 text-indent text-align
字体 font-weight font-family font-size font-style
链接 a:link a:hover a:visited a:active
列表 list-style-image list-style-type
表格 th,td,table都有独立的边框 border-collapse width heiht <h2 style="padding: 0px; border: 0px; font-weight: bold; font-family: 微软雅黑; font-size: 14px; color: rgb(0, 0, 0); text-align: left; background-color: rgb(249, 249, 249);">表格文本对齐 texit-align</h2>
轮廓<a href="http://www.w3school.com.cn/cssref/pr_outline-color.asp" style="margin: 0px; padding: 0px; border: 0px; color: rgb(255, 0, 0); background: transparent; font-family: Verdana, Arial, 宋体; font-size: 12px; text-align: left;">outline-color</a>
shiro INI配置
main
user
Subject
ini配置文件中,生成一个个token
subject.login(token);<br>
<p style="padding: 0px; color: rgb(0, 0, 0); font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.2px; text-align: left; widows: 1;"><span style="line-height: 1.5;">、变量名</span><span style="line-height: 1.5;">=</span><span style="line-height: 1.5;">全限定类名</span><span style="line-height: 1.5;">会自动创建一个类实例</span></p><p class="MsoNormal" style="padding: 0px; color: rgb(0, 0, 0); font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.2px; text-align: left; widows: 1;"><span style="line-height: 1.5;">2</span><span style="line-height: 1.5;">、变量名</span><span style="line-height: 1.5;">.</span><span style="line-height: 1.5;">属性</span><span style="line-height: 1.5;">=</span><span style="line-height: 1.5;">值</span> <span style="line-height: 1.5;">自动调用相应的</span><span style="line-height: 1.5;">setter</span><span style="line-height: 1.5;">方法进行赋值</span></p><p class="MsoNormal" style="padding: 0px; color: rgb(0, 0, 0); font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 25.2px; text-align: left; widows: 1;"><span style="line-height: 1.5;">3</span><span style="line-height: 1.5;">、</span><span style="line-height: 1.5;">$</span><span style="line-height: 1.5;">变量名</span> <span style="line-height: 1.5;">引用之前的一个对象实例</span><span style="line-height: 1.5;"> </span></p>
<span style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; text-align: left; widows: 1; background-color: rgb(238, 238, 238);">角色访问控制(RBAC)</span>
、性能问题通配符匹配方式比字符串相等匹配来说是更复杂的,因此需要花费更长时间,但是一般系统的权限不会太多,且可以配合缓存来提供其性能,如果这样性能还达不到要求我们可以实现位操作算法实现性能更好的权限匹配。另外实例级别的权限验证如果数据量太大也不建议使用,可能造成查询权限及匹配变慢。可以考虑比如在sql查询时加上权限字符串之类的方式在查询时就完成了权限匹配。