摘要:
语法:word-wrap : normal | break-word参数:normal : 允许内容顶开指定的容器边界break-word : 内容将在边界内换行。如果需要,词内换行(word-break)也行发生说明:设置或检索当当前行超过指定容器的边界时是否断开转行。对应的脚本特性为wordWrap。请参阅我编写的其他书目。示例:div { word-wrap: break-word; } 阅读全文
posted @ 2014-03-11 16:03
谈感情伤钱
阅读(163)
评论(0)
推荐(0)
摘要:
join用指定的字符连接collection中的elementdef list = [2007, 8, 26]list.join('-')运行结果:2007-8-26def arr=['asd',2018,123] as String[]print arr.sort().join('') 阅读全文
posted @ 2014-03-11 15:43
谈感情伤钱
阅读(136)
评论(0)
推荐(0)
摘要:
import java.util.regex.Matcher;import java.util.regex.Pattern; String check = '^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$' Pattern regex = Pattern.compile(check); Matcher matcher = regex.matcher(email); if(!matcher.matches()){ Messagebox.show("请填 阅读全文
posted @ 2014-03-11 15:37
谈感情伤钱
阅读(105)
评论(0)
推荐(0)
摘要:
static mapping = { table 'some_other_table_name' columns { name column:'airline_name' url column:'link' frequentFlyer column:'ff_id' } } static constraints = { name(blank:false, maxSize:100) url(url:true) frequentFlyer(blank:true) notes(maxSize:1500) }static mapping = 阅读全文
posted @ 2014-03-11 15:35
谈感情伤钱
阅读(342)
评论(0)
推荐(0)