摘要: CKEditor.js的配置,大概有两种方式,这里有基础版和全面的版本可以试验 1.直接上代码,工具栏的配置修改 toolbar 中的属性查看 2.直接上图片,在vue-cli项目中使用 下载下来放入static目录下,在main.js内引入(全局) 进入配置文件 最后说明一下引入的ckeditor 阅读全文
posted @ 2018-10-09 15:38 tang丶有年 阅读(2550) 评论(0) 推荐(0) 编辑
摘要: <template> <section> <el-row> <el-col:span="16"> <!--表单--> <h3>{{setedList.length}}</h3> <tablecellspacing="0"style="width:100%;"class="table-my"> <th 阅读全文
posted @ 2018-05-18 01:52 tang丶有年 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 使用css3 的 animation 属性实现的点击滑出侧栏 阅读全文
posted @ 2017-12-02 23:11 tang丶有年 阅读(2971) 评论(0) 推荐(0) 编辑
摘要: 本讲解基于Vue-cli(脚手架)搭建的项目。 Vuex 数据状态管理工具,整个流程类似依赖注入,相当于预先定义,倒推。(个人理解) 1. 安装vuex 命令行输入 npm install vuex --save 2.在根目录的src下新建 store文件夹,并且在其内创建5个js文件。 index 阅读全文
posted @ 2017-11-26 22:03 tang丶有年 阅读(355) 评论(0) 推荐(0) 编辑
摘要: if(window.plus) { plusReady(); } else { //plusready事件(自带事件)调用了才可使用h5+API document.addEventListener("plusready", plusReady, false); ... 阅读全文
posted @ 2017-11-06 22:56 tang丶有年 阅读(982) 评论(0) 推荐(0) 编辑
摘要: overflow-x: scroll;横向滑动(移动端使用详解) css3 , ie8以上 阅读全文
posted @ 2017-11-06 00:05 tang丶有年 阅读(14144) 评论(0) 推荐(0) 编辑
摘要: 下面这个样子。 键盘唤起下面这样 是为什么呢?: 软键盘唤起后,页面的 fixed 元素将失效(即无法浮动,也可理解为成了 absolute 定位) 解决方案: 将原 body 滚动的区域域移到 main 内部 h5底部输入框被键盘遮挡问题 js解决软键盘遮挡输入框问题 链接 http://blog 阅读全文
posted @ 2017-10-26 21:50 tang丶有年 阅读(10642) 评论(0) 推荐(0) 编辑
摘要: 1.get和post请求的应用场景? get: 1.get请求获取(查询)数据 2.请求url长度比较短 3.可以被缓存 4.请求url可以作为浏览器书签 5.可以被保存在浏览器记录中 6.请求参数在url后可以被看见 post: 1.post请求用来修改数据(回帖,评论) 2.不被缓存 3.请求u 阅读全文
posted @ 2017-10-25 21:46 tang丶有年 阅读(1231) 评论(0) 推荐(0) 编辑
摘要: 1.指令 *ngIf: 判断 isActive 为true时 <user-detail> 生效展示 *ngFor:遍历显示 <div *ngFor="let user of users">{{user.fullName}}</div> ngClass:class为true类名text-success 阅读全文
posted @ 2017-08-25 01:36 tang丶有年 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 资料来自:https://cn.vuejs.org/v2/guide/components.html#具名-Slot 在官方文档的基础上,更加细致的讲解代码。 <slot> 标签中的任何内容都被视为备用内容,只有在宿主元素为空,它才显示。 1.单个slot 除非子组件模板包含至少一个 <slot>  阅读全文
posted @ 2017-06-16 01:51 tang丶有年 阅读(480) 评论(0) 推荐(0) 编辑