摘要: 是路由的hash和history之分,默认是hash模式,会有#,把mode改成history,就没了 摘自:https://www.cnblogs.com/zbx-boke/p/9506376.html vue中常用的路由模式 hash(#):默认路由模式 histroy(/)切换路由模式 has 阅读全文
posted @ 2019-02-20 14:05 IT小菜鸟1 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: Html 代码.space a { display: inline-block; padding: .5em 1em; background-color: #cad5eb; } <div class="space"> <a href="##">惆怅</a> <a href="##">淡定</a> < 阅读全文
posted @ 2019-02-19 09:17 IT小菜鸟1 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://www.cnblogs.com/whh412/p/5627088.html 1. JSON.parse(jsonString): 在一个字符串中解析出JSON对象 1 2 3 var str = '[{"href":"baidu.com","text":"test","orgI 阅读全文
posted @ 2019-02-16 11:32 IT小菜鸟1 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 在vue-cli的组件中,html编码中有一段较长的文字,ESLint报错:Line 10 exceeds the maximum line length of 100 ,ESLint设置一行编码最多不能超过100字符。 方案一: 解决: 在文件夹中有个设置ESLint语法的js文件.eslintr 阅读全文
posted @ 2019-02-16 10:00 IT小菜鸟1 阅读(10639) 评论(0) 推荐(0) 编辑
摘要: 段落前面空两个字的距离,不要再使用空格了,对于文字,需要使用4个&nbsp;才会显示汉字2个字符空格的效果。 用CSS实现段落首缩进两个字符,应该使用首行缩进text-indent。text-indent可以使得容器内首行缩进一定单位。比如中文段落一般每段前空两个汉字。 在这里我们需要了解一种长度单 阅读全文
posted @ 2019-02-16 09:32 IT小菜鸟1 阅读(17105) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://www.jb51.net/article/150517.htm 遇到问题: 今天做一个 VUE 的项目,在引入第三方依赖的 JS 文件时,遇到了一个问题: 控制台的提示:Uncaught SyntaxError: Unexpected token < 按照提示进入文件,再看如下 阅读全文
posted @ 2019-02-15 14:38 IT小菜鸟1 阅读(11787) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://www.cnblogs.com/s313139232/p/9007326.html 1.ioc图标设置 在根目录中的index.html中引入代码: 1 <link rel="shortcut icon" type="image/x-icon" href="./favicon. 阅读全文
posted @ 2019-02-15 11:02 IT小菜鸟1 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1、uni-app 是一个使用 Vue.js 开发跨平台应用的前端框架,开发者编写一套代码,可编译到iOS、Android、H5、小程序等多个平台。 https://uniapp.dcloud.io/ 2、MUI以iOS平台UI为基础,补充部分Android平台特有的UI控件。需要先导入相应的css 阅读全文
posted @ 2019-02-12 17:29 IT小菜鸟1 阅读(541) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>upload</title> </head> <body> <input accept="image/*" name="upimage" id="upload_file" type 阅读全文
posted @ 2019-02-12 11:20 IT小菜鸟1 阅读(298) 评论(0) 推荐(0) 编辑