上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 效果如下: 阅读全文
posted @ 2018-10-12 00:28 ypm_wbg 阅读(226) 评论(0) 推荐(0) 编辑
摘要: function textSize(fontSize,fontFamily,text){ let span = document.createElement("span"); let result = {}; result.width = span.offsetWidth; result.height = span.of... 阅读全文
posted @ 2018-08-23 14:49 ypm_wbg 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 首先我们都知道js中构造函数一般应该是这样的 function Super (a) { this.a = a; } Super.prototype.sayHello = function() { alert('hello world'); } 但如果在构造函数中 加入 return 会是什么结果呢 阅读全文
posted @ 2018-07-17 09:50 ypm_wbg 阅读(1722) 评论(0) 推荐(0) 编辑
摘要: 安装了那个模板出了错报这样的错误 “%1 is not a valid Win32 application” 你就除那个模板新安装。 如下例: 运行 npm install -g @angular/cli 报以下错误 解决方法 npm rm -g @angular/cli npm install - 阅读全文
posted @ 2018-07-17 09:44 ypm_wbg 阅读(1470) 评论(0) 推荐(0) 编辑
摘要: 一、基础要扎实,主要是js-原型,闭包,一些属性的使用 面试题: 1、 5、什么是闭包,原型链,谈你对它们的理解 6、web storage 和cookie 的区别 这里开始也不确定说的web storage是什么,也是面试完了后才知道 指的就是 session 7、js 对后端调用 的 同步和异步 阅读全文
posted @ 2018-06-29 08:42 ypm_wbg 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Object.defineProperty() 方法会直接在一个对象上定义一个新属性,或者修改一个对象的现有属性, 并返回这个对象。 语法: Object.defineProperty(obj, prop, descriptor): obj:要在其上定义属性的对象。 prop:要定义或修改的属性的名 阅读全文
posted @ 2018-06-07 09:28 ypm_wbg 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1、把自己(sa)添加到sudoers配置文件中,以便于获取权限 2、联网 ifconfig eth0 down 停下网卡 eth0 ifconfig eth0 up 启动网卡eth0 查看是否有网卡接通: ethtool eth0; eth0是网卡的名字,当下面显示信息中Link detecte为 阅读全文
posted @ 2018-05-02 15:13 ypm_wbg 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 1、编辑文件 vi aaa.txt 打开aaa.txt文件 esc键 切换编辑和命令模式 命令模式里输入:(冒号),可以输入命令 :s/ 字符串1/字符串2 把字符串1替换成字符串2 :wq! 进行文件保存并退出 :q! 强制退出文件编辑 2、查看文件内容 vi aaa.txt 打开aaa.txt文 阅读全文
posted @ 2018-05-02 11:52 ypm_wbg 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1、pwd 显示当前所在工作目录的全路径 2、ls 列出目录下的文件 3、移动(mv)和复制(cp)文件及文件夹 4、删除命令 rm 5、新建文件夹(mkdir)和文件(touch) 6、cd的用法 出自:https://blog.csdn.net/qq15577969/article/detail 阅读全文
posted @ 2018-05-02 11:09 ypm_wbg 阅读(217) 评论(0) 推荐(0) 编辑
摘要: <input type="text" v-model="number"> <input type="text" v-model="num"> <input type="button" v-click="increment" value="加1"> <input type="button" v-cli 阅读全文
posted @ 2018-04-24 20:15 ypm_wbg 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页