哎呀,居然忘了写总结了,先检讨下。
这周开始有任务,就是改系统bug,说简单也简单,说难也难,都是应用需求的一些bug,比如输入框输入限制等
下面说几个前台常用的技巧:
①
过滤特殊符号
onkeyup="value=value.replace(/[^\w|(\u4E00-\u9FA5)]/g,'')"
②
http://www.cnblogs.com/hongten/archive...
分类:
其他好文 时间:
2015-05-27 14:05:10
阅读次数:
175
语法REPLACE ( original-string, search-string, replace-string )用法update 表的名称 set 替换字段=REPLACE(替换字段,原来内容,新内容)参数如果有某个参数为 NULL,此函数返回 NULL。original-string 被搜...
分类:
数据库 时间:
2015-05-27 11:51:05
阅读次数:
128
Problem Description
Given n integers.
You have two operations:
U A B: replace the Ath number by B. (index counting from 0)
Q A B: output the length of the longest consecutive increasing subseque...
分类:
其他好文 时间:
2015-05-27 10:22:54
阅读次数:
174
转自:http://www.yrom.net/blog/2013/03/10/fragment-switch-not-restart/让多个Fragment 切换时不重新实例化在项目中需要进行Fragment的切换,一直都是用replace()方法来替换Fragment:123456789 p...
分类:
其他好文 时间:
2015-05-27 09:53:10
阅读次数:
198
mysql的replaceinto和onduplicatekeyupdate测试笔记mysql>createtabletbl_insert_tmp(idint(5),addr_numberint(10),namevarchar(20),primarykey(id),uniquekeyudx_addr_number(addr_number));QueryOK,0rowsaffected(0.05sec)mysql>showcreatetabletbl_insert_tmp\G******..
分类:
数据库 时间:
2015-05-27 01:10:55
阅读次数:
275
一、Fragment+RadioGroup??在项目中需要进行Fragment的切换,一直都是用replace()方法来替换Fragment:然后总感觉切换的时候有些卡顿。1、以前的代码: radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
@Overr...
分类:
其他好文 时间:
2015-05-27 01:01:20
阅读次数:
189
CREATE OR REPLACE PROCEDURE proc_Insert_BookKindList (temTypeName nvarchar2,temParent int)ASncount number;begin--SELECT COUNT (*) INTO ncount FROM Boo...
分类:
数据库 时间:
2015-05-26 23:13:07
阅读次数:
159
转自:http://www.blogjava.net/pingpang/archive/2012/08/12/385342.html1. javascript 正则对象替换创建和用法:/pattern/flags先简单案例学习认识下replace能干什么: 正则表达式构造函数: new RegE.....
分类:
Web程序 时间:
2015-05-26 20:42:16
阅读次数:
190
异常处理create or replace procedure prc_get_sex (stuname student.name%type) as stusex student.sex%type; begin select sex into stusex from ...
分类:
数据库 时间:
2015-05-26 18:04:20
阅读次数:
167
js代码functioneditImage(userName){varuserName1=encodeURI(userName);//中文转码userName1=userName1.replace("+","%2B");//防止web容器自动转码userName1=userName1.replace...
分类:
编程语言 时间:
2015-05-26 15:50:35
阅读次数:
170