11 2018 档案

摘要:1. 文件夹 增加文件夹 var fs = require("fs"); console.log("创建目录 tmp"); fs.mkdir("tmp",function(err){ if (err) { return console.error(err); } console.log("目录创建成 阅读全文
posted @ 2018-11-29 19:42 justSmile2 阅读(172) 评论(0) 推荐(0) 编辑
摘要:1.结构 node_modules ( ... ) routers ( main.js ) views ( index.html about.HTML 404.html ) app.js package.json 2. 文件 package.json { "name": "wj", "version 阅读全文
posted @ 2018-11-29 18:14 justSmile2 阅读(283) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-29 13:48 justSmile2 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-28 19:19 justSmile2 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-28 19:19 justSmile2 阅读(728) 评论(0) 推荐(0) 编辑
摘要:Document ... 阅读全文
posted @ 2018-11-28 19:11 justSmile2 阅读(200) 评论(0) 推荐(0) 编辑
摘要:慎用。 技术,应该分享。。 阅读全文
posted @ 2018-11-28 19:02 justSmile2 阅读(96) 评论(0) 推荐(0) 编辑
摘要:1.小程序理解 基于微信的 免安装 MVVM 应用 编码使用 ES 6 一个页面基本组成:wxml wxss js ( html、css、js ) 2. 常见用法 ( 基本就是跟着例子走。。 ) 设置值 this.setData({ userInfo: e.detail.userInfo, hasU 阅读全文
posted @ 2018-11-27 19:09 justSmile2 阅读(214) 评论(0) 推荐(0) 编辑
摘要:node 作为服务端 - 基本使用 1. web 服务器 web.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> <style> div{ border: 1px so 阅读全文
posted @ 2018-11-27 18:15 justSmile2 阅读(173) 评论(0) 推荐(0) 编辑
摘要:搜狐IP地址查询接口(默认GBK):http://pv.sohu.com/cityjson 搜狐IP地址查询接口(可设置编码):http://pv.sohu.com/cityjson?ie=utf-8 搜狐另外的IP地址查询接口:http://txt.go.sohu.com/ip/soip http 阅读全文
posted @ 2018-11-20 10:32 justSmile2 阅读(1123) 评论(0) 推荐(0) 编辑
摘要:html <meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta htt 阅读全文
posted @ 2018-11-20 10:09 justSmile2 阅读(1338) 评论(0) 推荐(0) 编辑
摘要:1. 百度百科 2.http | MDN 3.协议讲解 4.经典题 5.http与https的区别 6. http服务器返回状态总结 7.网络七层协议 开放式系统互联参考模型(OSI)的7层从上到下分别是 7 应用层 6 表示层 5 会话层 4 传输层 ( 定义了应用程序的功能 ) 3 网络层 2 阅读全文
posted @ 2018-11-15 11:38 justSmile2 阅读(121) 评论(0) 推荐(0) 编辑
摘要:Object 是函数 函数也是对象,对象(除了null)都有 __proto__ 属性,指向其原型函数,通过 __proto__ 属性形成原型链。 构造函数的 constructor 都指向 Function Function 的 prototype 指向一个特殊匿名函数,且这个特殊匿名函数的 __ 阅读全文
posted @ 2018-11-14 19:58 justSmile2 阅读(202) 评论(0) 推荐(0) 编辑
摘要://一、Object.create //Object.create 方法是JavaScript中用于创建对象的一个方法 , 接收两个参数,第一个表示要继承的对象,第二个参数(可选)表示也是一个对象,用于对新创建的对象进行初始化 。 //1.初始化对象 var Obj = { name: 'mini', age: 3, ... 阅读全文
posted @ 2018-11-14 11:05 justSmile2 阅读(337) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-12 13:04 justSmile2 阅读(45) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-09 20:24 justSmile2 阅读(12) 评论(0) 推荐(0) 编辑
摘要:isPrototypeOf() 判断某个 proptotype 对象和某个实例之间的关系 alert(Cat.prototype.isPrototypeOf(cat1)); //true alert(Cat.prototype.isPrototypeOf(cat2)); //true hasOwnP 阅读全文
posted @ 2018-11-09 19:59 justSmile2 阅读(180) 评论(0) 推荐(0) 编辑
摘要:XX 的 前端代码真是不敢恭维 成堆的全局变量 随意的交互代码 杂乱的注释 坑爹的命名方式 过时的隐藏 input 埋点 为了装逼而存在的入口函数 功能一样的不封装 一排排的行内样式... ( 。。。。。。 ) 本来那都不是事,眼不见心不烦的无所谓,但是出了问题他自己不搞要领导推给我。。。( 公司老 阅读全文
posted @ 2018-11-08 15:06 justSmile2 阅读(182) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-08 14:05 justSmile2 阅读(272) 评论(0) 推荐(0) 编辑
摘要:<meta http-equiv="Refresh" content="5;url=http://www.w3school.com.cn" /> meta 标签知多少 阅读全文
posted @ 2018-11-07 20:02 justSmile2 阅读(53) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-06 20:03 justSmile2 阅读(13) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-06 19:59 justSmile2 阅读(63) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-06 19:07 justSmile2 阅读(13) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-11-06 18:13 justSmile2 阅读(7) 评论(0) 推荐(0) 编辑
摘要:// 1 翻转字符串 function reverseString(str) { str = str.split('').reverse().join(''); return str; } // 2.Check 回文(一个字符串忽略标点符号、大小写和空格,正着读和反着读一模一样) function 阅读全文
posted @ 2018-11-06 17:47 justSmile2 阅读(1712) 评论(0) 推荐(0) 编辑
摘要:网页 标签栏 / 收藏栏 小图标设置使用 link 标签 <link rel="icon" href="../Content/favicon.ico" type="image/x-icon" /> <link rel="icon" href="1.gif" type="image/gif" size 阅读全文
posted @ 2018-11-06 11:55 justSmile2 阅读(248) 评论(0) 推荐(0) 编辑
摘要:1. JavaScript 特殊字符 2. 正反斜杠互相替换 'a/b/c'.replace(/\//g,'\\') // "a\b\c" $0.value.replace(/\\/g,'\/') // 'a/b/c' 获取到 而不提取出 某个值后进行直接处理 \ 有转义功能,所以一旦解析必然转义, 阅读全文
posted @ 2018-11-05 19:33 justSmile2 阅读(6562) 评论(0) 推荐(0) 编辑
摘要:1. steam 教育 Science(科学), Technology(技术), Engineering(工程), Arts(艺术), Maths(数学) 2. steam 平台 Steam英文原译为蒸汽。至于为什么叫“Steam”。在Steam平台上下载游戏的速度是非常快的,速度快得就像蒸汽一样喷 阅读全文
posted @ 2018-11-05 15:07 justSmile2 阅读(774) 评论(0) 推荐(0) 编辑
摘要:1. 执行 node helloworld.js 2. http 服务器 建 server.js 文件 - node server.js 跑起来 - 浏览器访问 http://localhost:8888/ (服务器控制台观看访问次数) var http = require("http"); var 阅读全文
posted @ 2018-11-02 16:12 justSmile2 阅读(134) 评论(0) 推荐(0) 编辑
摘要:node -v node 版本 npm -v npm版本号,npm是在安装nodejs时一同安装的nodejs包管理器 (注册、安装模块,和小乌龟有点像) npm list 当前目录已安装插件 npm list -g 查看所有全局安装的模块: npm init 生成 package.json 查看n 阅读全文
posted @ 2018-11-02 12:56 justSmile2 阅读(313) 评论(0) 推荐(0) 编辑
摘要:1. window 快捷键 Win+D: / 点击右下角右下角 返回到桌面Win+E: 打开“资源管理器” / 调出磁盘窗口Win+L: 锁定当前用户。 / 锁屏Win+R: 打开“运行”对话框。Win+Space / 移动到右下角 预览桌面Win+Tab 3D样式窗口之间切换 Ctrl+F: 定位 阅读全文
posted @ 2018-11-02 12:37 justSmile2 阅读(752) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示