function change(){ if ($('.clickImg').attr('src').match('left')) { $('.clickImg').attr('src','right.png'); } else { $('.clickImg').attr('src','... ...
分类:
其他好文 时间:
2017-10-16 16:52:38
阅读次数:
138
function is_email($str){ //检验email return preg_match("/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/", $str); } function is_url($str){ //检验网址 return ...
分类:
Web程序 时间:
2017-10-16 12:21:34
阅读次数:
231
9. view语句 视图(view)语句的定义和使用: view view_name [class] { match-clients { address_match_list } ; match-destinations { address_match_list } ; match-recursiv ...
分类:
其他好文 时间:
2017-10-16 09:42:41
阅读次数:
161
String:charAt(); charCodeAt(); indexOf(); match(); replace(); search(); slice(); toUpperCase(); toLowerCase(); 等 方法 charAt(); var str="HELLO WORLD"; v ...
分类:
Web程序 时间:
2017-10-15 21:26:20
阅读次数:
431
25W/m 76% Most of us have formed an unrealistic picture of life on a desert island. We sometimes imagine a desert island to be a sort of paradise wher ...
分类:
其他好文 时间:
2017-10-13 10:27:34
阅读次数:
160
We can also do it without modifying the input by using a variable prev to hold the a[i-1]; if we have to lower a[i] to match a[i-1] instead of raising ...
分类:
其他好文 时间:
2017-10-13 10:22:33
阅读次数:
111
获取单条新闻的#标题#链接#时间#来源#内容 #点击次数,并包装成一个函数。 点击次数: 结果: 后面函数: 完成自己所选其他主题相应数据的爬取工作。 ...
分类:
其他好文 时间:
2017-10-12 20:33:55
阅读次数:
312
之前一直忽略了一个问题就是:给定的空字符串数组 1 char* longestCommonPrefix(char** strs, int strsSize) { 2 char* result; 3 if(strsSize == 0) { 4 result = (char *)malloc(sizeo... ...
分类:
其他好文 时间:
2017-10-12 19:10:42
阅读次数:
164
今天用yum安装软件,遇到了Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL问题,为了加深印象,特别搜索了RPM-GPG-KEY到底是作什么的,发现了这篇文章,放在这里,方便以后想不起来时查看。 原文如下: GPG在Linux上 ...
分类:
其他好文 时间:
2017-10-12 15:38:08
阅读次数:
137
转自 https://segmentfault.com/q/1010000007144114/a-1020000007144741 取键 取值 ...
分类:
其他好文 时间:
2017-10-12 10:13:32
阅读次数:
104