上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: /src/route/index.js import Demo2 from '@/pages/demo2/index.vue' { path : '/demo2', name : 'demo2', component: Demo2 }, /src/pages/demo1/index.vue <tem 阅读全文
posted @ 2020-01-19 23:36 cl94 阅读(176) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div v-if="type 'A'">A</div> <div v-else-if="type 'B'">B</div> <div v-else-if="type 'C'">C</div> <div v-else-if="type 'D'">D</div> <d 阅读全文
posted @ 2020-01-19 23:21 cl94 阅读(139) 评论(0) 推荐(0) 编辑
摘要: CLI 使用vue-cli可以快速搭建Vue开发环境以及对应的webpack配置 cnpm install -g @vue/cli // 如果需要使用旧版本的vue init功能(脚手架2),你可以全局安装一个桥接工具: cnpm install @vue/cli-init -g vue cli2初 阅读全文
posted @ 2020-01-18 22:05 cl94 阅读(143) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> let v = new Vue({ el : ".ball", data : {t:1}, beforeCreate : function(){ console.log('组件刚刚被创建!') console.log(this) }, 阅读全文
posted @ 2020-01-18 20:42 cl94 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 案例: ①匿名封装 (function(window,document){ const HEAD = 1; let MSG = function(options){ this._init(options); } //原型 MSG.prototype._init = function({msg}){ 阅读全文
posted @ 2020-01-18 20:02 cl94 阅读(150) 评论(0) 推荐(0) 编辑
摘要: ES6: ①let 特点:1 只能作用域当前作用域中; 2 使用let或者const声明的变量,不能再被重新声明; 3 let不存在变量提升 比如: console.log(dad); var dad = 1; 不会报错,因为上面的代码会被变量提升为: var dad; console.log(da 阅读全文
posted @ 2020-01-18 20:01 cl94 阅读(139) 评论(0) 推荐(0) 编辑
摘要: linux下安装redis,安装的目录是tar的解压目录的src下 swoole需要在后台运行: nohup php server.php & 或者 screen php server.php 关掉swool进程: netstat -tunlp | grep 9501 kill -9 12789 阅读全文
posted @ 2019-11-20 23:24 cl94 阅读(81) 评论(0) 推荐(0) 编辑
摘要: CentOS升级到7之后,发现无法使用iptables控制Linuxs的端口,baidu之后发现Centos 7使用firewalld代替了原来的iptables。下面记录如何使用firewalld开放Linux端口: 开启端口 [root@centos7 ~]# firewall-cmd --zo 阅读全文
posted @ 2019-11-18 21:17 cl94 阅读(120) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <style type="text/css"> li.selected{ border: 1px solid; } / 阅读全文
posted @ 2019-11-13 08:09 cl94 阅读(143) 评论(0) 推荐(0) 编辑
摘要: nginx伪静态: rewrite ^/(.*)-htm-(.*)$ /$1.php?$2; 将 list-html-t-3-p-4.html 转到list.php?t-3-p-4 t-3-p-4 用php转换成t=3&p=4格式 php配置文件 之价格选项 $_t = [ 0 => [ 'p' = 阅读全文
posted @ 2019-11-13 07:41 cl94 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页