07 2012 档案
摘要:<input onkeypress="return /[\w\u4e00-\u9fa5]/.test(String.fromCharCode(window.event.keyCode))" onpaste="return !/[^\w\u4e00-\u9fa5]/g.test(window.clipboardData.getData('Text'))" ondragenter="return false"/>再粘贴一些别人写的。1.只能输入数字和英文的: <input onkeyup="va
阅读全文
摘要:鉴于很多兄弟都需要,所以放一段小代码:取汉字的拼音简码 sql server 函数鉴于很多兄弟都需要,所以放一段小代码:取汉字的拼音简码 sql server 函数if exists(select 1 from sysobjects where name='fun_GetPY')drop fun_GetPY go create function fun_GetPY ( @str nvarchar(4000) ) returns nvarchar(4000) as begin declare @word nchar(1),@PY nvarchar(4000) set @PY=&#
阅读全文