- 博客(9)
- 收藏
- 关注
转载 前端小知识收集
前端小知识收集摘自 公众号高级前端进阶1.css 一行文本超出…overflow: hidden;text-overflow:ellipsis;white-space: nowrap;2.多行文本超出显示…display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;3.IOS 手机容器滚动条滑动不流畅overflow: auto;-webkit-overflow
2021-04-15 10:26:48
109
原创 vite搭建Vue3.0项目尝试
Vue3.0开始新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入开始最近项目不太紧张,终于可以尝试上手3.0了,附上3.0的文档位置链接: Vue3.0.Vitejs新的改变我们对Markdown编辑器进行了一些
2021-03-30 11:29:42
1294
翻译 vue 跨域问题
新建vue项目后 npm install vue-resource(听说已经停更) npm install axiosmain.js import axios from 'axios' Vue.prototype.axios = axios;confing文件下 index.js proxyTable: { '/type': {...
2018-03-22 16:41:12
380
原创 nodejs更改项目端口号
在项目中加入文件:ServerConfvar ServerConf= { ApiHost: "" //后台链接api ,ServicePort:3003};module.exports=ServerConf;app.js// 设置端口号var ServerConf=require("./ServerConf");列表内容process.env.PORT=ServerCon
2017-08-02 11:31:46
20905
转载 node.js ejs 渲染moment
1:现象:项目里安装moment npm install moment –save2:app.js配置 var moment = require(‘moment’); var shortDateFormat = “ddd @ h:mmA”; app.locals.moment = moment; app.locals.shortDateFormat = shortDateForm
2017-06-13 16:34:52
1255
转载 判断手机类型,浏览器是否为微信打开
//node.js服务器判断 var deviceAgent = req.headers["user-agent"].toLowerCase(); var agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/); if(agentID) { //手機或者pc } else { //指到p
2017-03-27 11:58:58
571
转载 pc.app判断。node.js
在请求内判断var _moblie={"code":1,"msg":2}....var deviceAgent = req.headers["user-agent"].toLowerCase();var agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/);if(agentID) {//指到手机、 pad的网页 _
2017-03-18 10:27:47
634
转载 百度定位功能
百度定位功能<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="
2017-03-15 18:07:36
397
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人