项目中遇到客户的需求变化,要验证某个数据的正确性,判断输入的两位字符,第一位是数字16进制的,第二位是I.O.Q.U除外的字母(A到Z). 本来对js不熟练,网上参考了一下js正则验证的规则,使用正则表达式完成了这个验证. function check() { var str = document.getElementById("txtEnglishName").value; var reg=/^[0-9a-fA-F][^IOQU]$/; if (str.length!=2) { my…
VERSION 1.0 引自: http://www.coderanch.com/t/134491/Security/generating-secure-tokens package demo; import java.util.Random; /* * This code is a discussion of an opinion in a technical forum. * You may develope ideas from this code. You may not…
Exercises 3.2 21. (a). For $\omega = sinz$, what is the image of the semi-infinite strip $S_1 = \{x+iy|-\pi<x<\pi,y>0\}$ (b). what is the image of the smaller semi-infinite strip $S_2 = \{x+iy|-\frac{\pi}{2}<x<\frac{\pi}{2},y>0\}$ Soluti…