1.箭头函数:
<script>
/* 普通函数 */
/* function fn()
{ return 123 }
let a = fn();
nsole.log(a); */
function fn(str){
let msg = str + 'hello'
return msg }、
let a = fn('张三丰') */
/* =>箭头函数后面只有一段表达式代表 return 返回 *
/* let fn = () => 123;
let a = fn();
console.log(a); */
/* 箭头函数只有一个参数()可以省略不写 */
/* 普通函数可以作为构造函数,箭头函数不能作为构造函数不然会报错 */
let fn = (str) =>{
let msg = str +'hello'
return msg }
let a = fn('张无忌')
console.log(a);
复制代码
2.两种轮播方式:
bootstrap轮播:引入min./bootstrap.min.css 才文件需要放在cs文件夹方式引入
js的两个链接 需要放在js文件 然后在此轮播方式的文件中在放入fonts文件夹 里面是字体样式 不需要引入 直接让进去即可
bootstrap相关轮播网址:
swiper轮播:
注意的是 这个页面才打开就是引入后台数据 在将轮播效果的方式显示
swiper轮播相关网址:
www.swiper.com.cn/usage/index…