- 博客(7)
- 收藏
- 关注
转载 forEach() 方法
<button onclick="numbers.forEach(myFunction)">点我</button><p id="demo"></p> <script>demoP = document.getElementById("demo");var numbers = [4, 9, 16, 25]; function myFunction(item, index) { demoP.innerHTML = demoP.inn
2020-09-01 17:21:09
271
原创 floor() 方法
Math 对象方法返回小于等于x的最大整数:var num = Math.floor(8.8)以上实例将输出:8Math 对象方法:abs(x) 返回 x 的绝对值。acos(x) 返回 x 的反余弦值。asin(x) 返回 x 的反正弦值。atan(x) 以介于 -PI/2 与 PI/2 弧度之间的数值来返回 x 的反正切值。atan2(y,x) 返回从 x 轴到点 (x,y) 的角度(介于 -PI/2 与 PI/2 弧度之间)。ceil(x) 对数进行上舍入。cos(x) 返回数
2020-09-01 17:13:30
538
转载 vue swiper轮播图
<template> <swiper ref="mySwiper" :options="swiperOptions"> <swiper-slide>Slide 1</swiper-slide> <swiper-slide>Slide 2</swiper-slide> <swiper-slide>Slide 3</swiper-slide> <swiper-slide>
2020-09-01 15:05:17
434
转载 vue swiper轮播图不显示 swiper-pagination 小圆点
<div class="swiper-pagination" slot="pagination"></div> //这个上面加一个 slot="pagination" new Swiper('.swiper-container', { loop: true, // 如果需要分页器 pagination:{ el:'.swiper-pagination', clickable:true, ..
2020-09-01 14:59:37
2617
原创 重置css样式
reset.css获取 reset.css 路径:https://meyerweb.com/eric/tools/css/reset/代码如下/* http://meyerweb.com/eric/tools/css/reset/ *//* v1.0 | 20080212 */html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, ad
2020-09-01 08:56:55
282
原创 Mac创建gitee项目
创建项目在终端上输入命令cd desktopthen 克隆文件(http://文件的地址)git clone http://创建一个vue项目vue init webpack +项目名称如何生成公钥鼠标移动至个人头像–>点击设置–>SSH公钥你可以按如下命令来生成 sshkey:ssh-keygen -t rsa -C "xxxxx@xxxxx.com" 注意:这里的 xxxxx@xxxxx.com 只是生成的 sshkey 的名称,并不约束或要求具体命名为某个
2020-09-01 08:30:51
258
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人