摘要:
history.pushState(null, null, document.URL); //首页加载时候先置空 window.addEventListener('popstate', function(e) { //后退事件置空 if(document.URL.split('/')[documen 阅读全文
摘要:
https://blog.csdn.net/wk767113154/article/details/77989544 参考资料 阅读全文
摘要:
https://www.zhangxinxu.com/wordpress/2018/10/display-flex-css3-css/#align-self display: flex; flex-wrap: wrap; justify-content: space-between; 一行两条 换行 阅读全文
摘要:
1、 laravel 安装 composer create-project laravel/laravel 2、laravel启动 cd 到 laravel php artisan serve 3、数据库迁移 配置.env数据库文件 php artisan migrate:install //创建数 阅读全文
摘要:
beforeRouteLeave(to,from,next){ //这里写关闭弹窗 // 这里跳转路由 MessageBox.close(); next() // next()别漏,不然不跳转 } beforeRouteLeave(to,from,next){ //这里写关闭弹窗 // 这里跳转路由 阅读全文
摘要:
<template> <div> <div id="slider" class="mui-slider"> <div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-co 阅读全文
摘要:
由于promise 是一个异步操作, 主程序 直接往下执行,不管你异步代码, 所以内部拿到结果后无法使用return把操作的结果返回给调用者这时候只能使用回调函数的形式把结果返回给调用者 阅读全文
摘要:
npm install babel-plugin-component -D 阅读全文
摘要:
//render 会把el指定的容器中所有的内容都清空把#app也会去掉 都在c(app)其中的app组件中展示 所有router-link router-view要写在app这个组件里面 //App 这个组件是通过render 渲染出来的 //account 跟goodslist 是url 路由匹 阅读全文
摘要:
export default 只能导出一个 可以用任意的变量来接收 export 可以暴露多个成员,需要用 import {} 接受成员 需要用名字接受 名字必须跟导出名字一致 //或者as作为别名 export var title = '小星星' import {title} from util. 阅读全文