代码搜索:接线方法
找到约 10,000 项符合「接线方法」的源代码
代码结果 10,000
www.eeworm.com/read/388532/8603392
html 11.2.4 atan方法.html
with(document)
{
with(Math)
{
write("atan(0)="+atan(0));
write("atan(1)="+atan(1));
write("atan(2)="+atan(2));
}
}
www.eeworm.com/read/388532/8603397
html 11.2.15 round方法.html
with (document)
{
with (Math)
{
write("round(2.49)="+round(2.49));
write("round(2.5)="+round(2.5));
write("round(-2.49)="+roun
www.eeworm.com/read/388532/8603403
html 11.2.6 ceil方法.html
with(document)
{
with(Math)
{
write("ceil(-2.5)="+ceil(-2.5));
write("ceil(2)="+ceil(2));
write("ceil(2.5)="+ceil(2.5));
}
www.eeworm.com/read/388532/8603407
html 11.2.1 abs方法.html
with(document)
{
with(Math)
{
write("abs(0)="+abs(0));
write("abs(2)="+abs(2));
write("abs(-2)="+abs(-2));
}
}
www.eeworm.com/read/388532/8603410
html 11.2.9 floor方法.html
with(document)
{
with(Math)
{
write("floor(-2.5)="+floor(-2.5));
write("floor(2)="+floor(2));
write("floor(2.5)="+floor(2.5));
www.eeworm.com/read/388532/8603511
html 13.1.5 test方法.html
Email合法性检测
function checkEmail()
{
//创建检测Email地址的正则表达式
var objReg=/\w+[@]{1}\w+[.]{1}\w+/;
var email=document.forms[0].email.value;
if (objR
www.eeworm.com/read/388532/8603517
html 13.1.3 replace方法.html
var ostr=new String("this is a test");
var reG=/s\w?/g;
var re=/s\w?/;
with (document)
{
write(ostr+"");
//全局检测
write(ostr.replace(reG,"**"));
www.eeworm.com/read/388532/8603522
html 13.1.5 compile方法.html
var ostr="我的13511111111他的132222222222她的13605461234";
var reg=/13(\d)(\d{8})/g;
var arr=reg.exec(ostr);
document.write("检测到如下手机号:");
writeNumber(arr);
//定义函数,输出数组中的
www.eeworm.com/read/388532/8603535
html 13.1.3 search方法.html
var re=/(\d)(\d)\d\2\1/
var ostr="1101011100110101100110011001"
var pos=ostr.search(re);
if(pos==-1)
document.write("没有找到任何匹配!");
else
{
arr=ostr.match(