一.删除模板片段使用th:remove属性th:remove的值如下: 1.all:删除包含标签和所有的孩子。 2.body:不包含标记删除,但删除其所有的孩子。 3.tag:包含标记的删除,但不删除它的孩子。 4.all-but-first:删除所有包含标签的孩子,除了第一个。 5.no...
分类:
其他好文 时间:
2014-10-17 15:15:48
阅读次数:
470
HTML 简介HTML 指的是超文本标记语言 (Hyper Text Markup Language),它不是一种编程语言,而是一种标记语言 (markup language) ,标记语言是一套标记标签 (markup tag) ,HTML 使用标记标签来描述网页,HTML 标记标签通常被称为 HT...
分类:
Web程序 时间:
2014-10-16 13:53:12
阅读次数:
205
UITextFieldDelegate键盘return事件- (BOOL)textFieldShouldReturn:(UITextField *)textField{ if (textField.tag == 1){ // do next // 光标 ...
分类:
其他好文 时间:
2014-10-16 13:33:42
阅读次数:
164
一、命名规则说明1)、所有的命名最好都小写2)、属性的值一定要用双引号("")括起来,且一定要有值如class="divcss5",id="divcss5"3)、每个标签都要有开始和结束,且要有正确的层次,排版有规律工整4)、空元素要有结束的tag或于开始的tag后加上"/"5)、表现与结构完全分离...
分类:
Web程序 时间:
2014-10-16 02:04:51
阅读次数:
333
操作镜像使用 docker 命令行操作 docker 镜像获取镜像使用「docker pull +镜像名称」从网络上下载image镜像core@localhost ~ $ docker pull
Usage: docker pull NAME[:TAG]
Pull an image or a repository from the registry
core@localhost ~/php ...
分类:
其他好文 时间:
2014-10-15 18:52:01
阅读次数:
276
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the Ser...
分类:
其他好文 时间:
2014-10-15 18:19:41
阅读次数:
186
tag参数是为了在回调方法中匹配发起调用的方法的,不会加在传输数据中。
调用write方法,等待接收消息。收到消息后,会回调didReadData的delegate方法,
delegate方法中的tag和发起read的方法中的tag是对应的。
- (void)readDataWithTimeout:(NSTimeInterval)timeout tag:(long)tag;
- (vo...
分类:
其他好文 时间:
2014-10-15 11:13:40
阅读次数:
217
shiro权限框架,前端验证是为jsp设计的,其中的tag只能用于jsp系列的模板引擎。最近项目使用了thymeleaf作为前端模板引擎,使用HTML文件,没法引入shiro的tag lib,此时如果要使用shiro的话,可以引入 thymeleaf-extras-shiro.jar这个拓展包来曲线实现shiro的前端验证。
在pom.xml中加入如下依赖:
com.github....
分类:
其他好文 时间:
2014-10-14 21:32:19
阅读次数:
1405
1、首先将如下数据提交到ES中建立索引
{"number":32768,"singer":"杨坤","size":"5109132","song":"今夜二十岁","tag":"中国好声音","timelen":319}
{"number":32769,"singer":"汪峰","size":"6001697","song":"我爱你中国","tag":"中国好声音","timelen":3...
分类:
其他好文 时间:
2014-10-14 20:48:29
阅读次数:
127