摘要: var fs=require('fs'); //读文件 var server=http.createServer(function(req,res){ var file_name='../www'+req.url; //注意路径 // console.log(file_name); fs.readF 阅读全文
posted @ 2019-05-07 09:26 Sun_Song 阅读(187) 评论(0) 推荐(0) 编辑
摘要: var http=require('http'); var server=http.createServer(function(req,res){ // res.write("aaa"); if(req.url=="/1.html"){ res.write("1111") }else if(req. 阅读全文
posted @ 2019-05-07 09:25 Sun_Song 阅读(135) 评论(0) 推荐(0) 编辑
摘要: var http=require("http"); //引入 var server=http.createServer(function(req,res){ //创建一个服务。req请求参数,res返回参数 console.log("有访问"); //控制台输出 }); server.listen( 阅读全文
posted @ 2019-05-07 09:24 Sun_Song 阅读(152) 评论(0) 推荐(0) 编辑
摘要: input[type=search]::-webkit-search-cancel-button{ -webkit-appearance: none; position: relative; height: 15px; width: 15px; border-radius: 50%; backgro 阅读全文
posted @ 2019-02-19 10:51 Sun_Song 阅读(2107) 评论(0) 推荐(0) 编辑
摘要: 关键在于open后再调用百度的方法 <div id="maplocation" style="width:500px;height:500px;display: none;"></div> 经度<input type="text" id="lng"> 纬度<input type="text" id= 阅读全文
posted @ 2018-11-05 16:46 Sun_Song 阅读(4862) 评论(0) 推荐(0) 编辑
摘要: toolbox: { //可视化的工具箱 show: true, feature: { restore: { //重置 show: true }, saveAsImage: {//保存图片 show: true } } }, 阅读全文
posted @ 2018-11-05 16:41 Sun_Song 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 多个地图同时缩放适用: window.addEventListener("resize",function(){ myChart.resize(); }); 阅读全文
posted @ 2018-11-05 16:40 Sun_Song 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 需要安装node.js npm install font-spider -g 安装字蛛 可能会报很多错 检查是否安装完成 font-spider --version 打包: doc命令进入目录所在位置 然后font-spider *.html或者font-spider 文件所在目录下的*.html 阅读全文
posted @ 2018-11-05 16:37 Sun_Song 阅读(2734) 评论(0) 推荐(0) 编辑
摘要: function getyzm() { code = ""; var codeLength = 4; //验证码的长度 var checkCode = document.getElementById("show_yzm"); var selectChar = new Array(0, 1, 2, 3 阅读全文
posted @ 2017-07-24 18:22 Sun_Song 阅读(2087) 评论(0) 推荐(0) 编辑
摘要: <a href="#" class="file_bg" > <img src="image/file_bg.jpg"id="file_bg"/><input type="file"id="file" onchange="c()"/> </a> .file_bg{ display:inline-blo 阅读全文
posted @ 2017-07-19 13:20 Sun_Song 阅读(179) 评论(0) 推荐(0) 编辑