上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页

map() 方法创建一个新数组,其结果是该数组中的每个元素都调用一个提供的函数后返回的结果。

摘要: var numbers = [1, 4, 9]; var roots = numbers.map(Math.sqrt); // roots的值为[1, 2, 3], numbers的值仍为[1, 4, 9] sqrt:用来计算一个非负实数的平方根 var numbers = [1, 4, 9]; v 阅读全文
posted @ 2017-11-07 14:32 芸芸众生! 阅读(1123) 评论(0) 推荐(0)

文字左右滚动选择,改变direction的值

摘要: 1、从左到右滚动显示<marquee direction=left>测试</marquee>2、从右到左滚动显示<marquee direction=right>测试</marquee> 阅读全文
posted @ 2017-11-07 11:01 芸芸众生! 阅读(371) 评论(0) 推荐(0)

文字纵向滚动marquee

摘要: <div style="width:200px; height:300px"><marquee direction="up" truespeed="truespeed" height="300px" behavior="scroll"><p>hellohellohellohellohellohell 阅读全文
posted @ 2017-11-07 10:57 芸芸众生! 阅读(523) 评论(0) 推荐(0)

文字横向滚动marquee

摘要: <div style="width:200px; height:300px"> <marquee behavior="scroll" contenteditable="true" onstart="this.firstChild.innerHTML+=this.firstChild.innerHTM 阅读全文
posted @ 2017-11-07 10:56 芸芸众生! 阅读(1111) 评论(0) 推荐(0)

switch 语句来选择要执行的多个代码块之一。

摘要: switch(n) { case 1: 执行代码块 1 break; case 2: 执行代码块 2 break; default: n 与 case 1 和 case 2 不同时执行的代码 } 阅读全文
posted @ 2017-11-07 10:43 芸芸众生! 阅读(820) 评论(0) 推荐(0)

form表单提交三种方式,demo实例详解

摘要: <html> <head> <title>submit直接提交</title> </head> <body> <!-- 表单的提交方式一 --> <form method="get"> username: <input type="text" name="username"/> <br/> pass 阅读全文
posted @ 2017-11-06 15:33 芸芸众生! 阅读(1217) 评论(0) 推荐(0)

筛选!所需的物品!

摘要: <!DOCTYPE HTML><html><head><title>原生js实现类似购物网站筛选页面效果</title><meta charset="utf-8"><style type='text/css'>* { margin: 0; padding: 0; }#wrap { width: 60 阅读全文
posted @ 2017-11-06 14:44 芸芸众生! 阅读(125) 评论(0) 推荐(0)

对表格内容进行筛选!

摘要: <!DOCTYPE html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test js</title> </head> <script type="text/javascri 阅读全文
posted @ 2017-11-06 14:35 芸芸众生! 阅读(375) 评论(0) 推荐(0)

引号不是字符串中唯一的可以被转义字符。下面是常见的转义序列列表:

摘要: 阅读全文
posted @ 2017-11-06 14:11 芸芸众生! 阅读(409) 评论(0) 推荐(0)

切换功能更新的事件如下:

摘要: js: navbarActiveSwitch(); var isclick=false; $(function () { $("label").on({ mouseover:function(){ $(this).addClass('clicks'); $(this).removeClass('po 阅读全文
posted @ 2017-11-06 10:18 芸芸众生! 阅读(126) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页