码迷,mamicode.com
首页 >  
搜索关键字:reg    ( 6610个结果
jQuery 实现 点击按钮后倒计时效果,多用于实现发送手机验证码、邮箱验证码
//发送短信验证码 $(":button.getcode").click(function(){ var reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; if(!reg.test($("#mobile").val())){ $('#profile .error_mobile...
分类:移动开发   时间:2015-07-22 13:23:04    阅读次数:192
获得URL参数
通过调用此函数获得调用页面传过来的参数,如果是用escape()加密的信息,unescape()可对其解码。在数据查询和更新上普遍使用。function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|...
分类:Web程序   时间:2015-07-22 01:29:38    阅读次数:105
Window7上搭建symfony开发环境(PEAR)
http://blog.csdn.net/kunshan_shenbin/article/details/71622431. 更新PEAR进入PHP所在目录,找到go-pear.bat并双击。一路回车。完成后在当前文件夹中会生成PEAR_ENV.reg文件,双击注册。2. 安装symfony打开wi...
分类:Windows程序   时间:2015-07-21 16:55:48    阅读次数:157
RGB888 TO BT1120 转换
module datainput(DVAL,LVAL,FVAL,in,clk_m,Y_data,C_data); input LVAL; input clk_m; input FVAL; input DVAL; input [23:0] in; output reg [7:0] Y_data,C_data; reg [7:0] POARTA,POARTB; reg [11:0] cnt_lval_...
分类:其他好文   时间:2015-07-20 16:26:06    阅读次数:175
Java 修改Windows注册表,以实现开机自启动应用程序。
使用Java修改Windows注册表,使用最基本的就是cmd命令。事例和运行结果如下所示:package day01;import java.io.IOException;/* 1,reg add 将新的子项或项添加到注册表中 语法:reg add KeyName [/v EntryName|/.....
分类:编程语言   时间:2015-07-20 12:35:19    阅读次数:175
PHP使用正则表达式分离出HTML里我们所需的数据,封装到二维数组里
HTML代码(reg.html)<?php $str = ' 支付宝 - 网上支付 安全快速! <LINK rel=icon type=image/x-icon...
分类:编程语言   时间:2015-07-19 16:34:43    阅读次数:545
[loadrunner]通过检查点判定事务是否成功
//检查点设置语句//tmp在此时为临时参数web_reg_find("SaveCount=tmp", "Text=xxx", LAST);//事务判定语句//因为tmp为临时参数,所以需要用lr_eval_string函数将起转化为变量。 if(atoi(lr_eval_string("{tmp....
分类:其他好文   时间:2015-07-18 18:26:03    阅读次数:465
JavaScript 匹配浮点数
//匹配整数,正小数appUtils.bindEvent($(_pageId+" .remind-list-con input"),function(){ var reg = /^(\d+\.)|(\d)|[\D.]/g this.value=this.value.replace(reg,'$1.....
分类:编程语言   时间:2015-07-17 20:15:22    阅读次数:130
最近有个需求,就是把某个网址跳转到另外一个网址
比如客户访问http://www.abc.comip对应10.10.10.1.需要跳转到另外一个网址http://www.125.com.我是在haproxy上实现的。frontendrewritetotripbind192.168.1.250:80modehttpoptionhttplogmaxconn2000aclclubhdr_reg(host)-iwww.abc.comredirectprefixhttp://trip.125.comifclub..
分类:其他好文   时间:2015-07-17 14:13:43    阅读次数:150
jq(邮箱:指定(其他的也可以))自动补全ui
$(function () { $('#search_button').button({ icons : { primary : 'ui-icon-search', }, }); $('#reg').dialog({ autoOpen : true, modal : true, re...
分类:其他好文   时间:2015-07-16 19:34:23    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!