摘要: Configuring the editor there are several ways to pass configuration to Ace 有几种方法可以将配置传递给ace // pass options to ace.edit ace.edit(element, { mode: "ace 阅读全文
posted @ 2018-11-19 18:53 她在村口等我 阅读(630) 评论(0) 推荐(0) 编辑
摘要: Built for Code Ace is an embeddable code editor written in JavaScript. It matches the features and performance of native editors such as Sublime, Vim 阅读全文
posted @ 2018-11-19 18:21 她在村口等我 阅读(212) 评论(0) 推荐(0) 编辑
摘要: User manual and reference guide version 5.41.1 用户手册和参考指南 CodeMirror is a code-editor component that can be embedded in Web pages. The core library pro 阅读全文
posted @ 2018-11-16 16:58 她在村口等我 阅读(932) 评论(0) 推荐(0) 编辑
摘要: Writing CodeMirror Modes Modes typically consist of a single JavaScript file. This file defines, in the simplest case, a lexer (tokenizer) for your la 阅读全文
posted @ 2018-11-14 16:56 她在村口等我 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 1. 今天在使用draggable组件时,监听dragmove事件时获取到的事件对象有一些异常, 代码如下 draggable.on('drag:move', (event) => { console.log(event); console.log(Array.prototype.slice.cal 阅读全文
posted @ 2018-11-12 14:14 她在村口等我 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1. 将客户端(本地电脑)中的图片拖到网页中 要点: html5 拖放, FileReader html: <div id="container" ondrop="drop(event)"></div> js代码: function drop(event) { var file = event.da 阅读全文
posted @ 2018-10-29 14:46 她在村口等我 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 1. js中已经提供了例如 parseInt, Math.floor, Math.ceil等数字操作,但通常也进行了其他操作(浮点数计算,转字符串等),相对比较耗性能, 偶然间看到可以通过位运算符取整,觉得比较好玩,代码如下 function parse(num) { var round; roun 阅读全文
posted @ 2018-10-19 15:03 她在村口等我 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: 前言: 本地开发起的服务器,通过修改hosts文件设置域名映射到本地,接口在测试环境 1. 服务器端设置cors, 配置access-control-allow-origin 头部 使用蚂蚁金服的upload组件时发现错误,network中可以看到有一个options请求,而本人实际上并没有使用op 阅读全文
posted @ 2018-08-31 16:41 她在村口等我 阅读(1548) 评论(0) 推荐(0) 编辑
摘要: 1. 查看线上小程序console a. 先打开开发小程序console b. 再打开线上小程序,此时可以查看console 阅读全文
posted @ 2018-08-13 15:52 她在村口等我 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 1. charles安装证书,手机设置代理等这里不多讲了, 请进入下面链接查看详细 https://blog.csdn.net/manypeng/article/details/79475870 2. 这里需要补充是的小米手机下载安装证书 a. 需要下载一个第三方的浏览器(非小米默认安装浏览器, 本 阅读全文
posted @ 2018-08-02 15:29 她在村口等我 阅读(2528) 评论(0) 推荐(0) 编辑