上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 1、新建一个globalVariable.js文件 2、定义要全局的变量 const UserId = ""; export default { UserId: "", setUserId(uId) { this.UserId = uId; } }; 3、使用该全局变量 在要使用该全局变量的vue文 阅读全文
posted @ 2019-07-20 23:56 在学习编程的lsy呀 阅读(2274) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-06 11:09 在学习编程的lsy呀 阅读(96) 评论(0) 推荐(0) 编辑
摘要: display:flex; align-items:center; justify-content:center; display:flex; align-items:center; justify-content:center; display:flex; align-items:center; 阅读全文
posted @ 2019-07-03 19:25 在学习编程的lsy呀 阅读(9763) 评论(0) 推荐(0) 编辑
摘要: <button> <img src="../img.png" >按钮一 </button> <button> <img src="../img.png" >按钮一 </button> 阅读全文
posted @ 2019-06-27 21:21 在学习编程的lsy呀 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: 在需要添加空格的地方写 &nbsp; 即可 阅读全文
posted @ 2019-06-27 21:18 在学习编程的lsy呀 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 因为span是内联函数,你需要先把span设置为块级元素或块级内联函数才可以。 代码如下:span{ display:block;margin-top;} 内联元素可以设置左右外边距和内边距,但如果想要设置上下内边距和外边距就必须设置为块级元素。 因为span是内联函数,你需要先把span设置为块级 阅读全文
posted @ 2019-06-27 21:17 在学习编程的lsy呀 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 1、<button onclick="window.location.href = 'https://www.baidu.com/'">百度</button> 2、在button外面套一层<a></a> <a href="http://www.baidu.com/"> <button>百度</but 阅读全文
posted @ 2019-06-27 21:13 在学习编程的lsy呀 阅读(1705) 评论(0) 推荐(0) 编辑
摘要: 对于字符串的切割截取平时所用可能不是特别多,而且分的比较细,所以自备自查。有备无患。 由于之前所有均在一个demo测试,若是哪里打错了,敬请谅解。一些其余属性找时间继续添加。 1.函数:split() 功能:使用一个指定的分隔符把一个字符串分割存储到数组 例子: str=”jpg|bmp|gif|i 阅读全文
posted @ 2019-04-27 13:30 在学习编程的lsy呀 阅读(268) 评论(0) 推荐(0) 编辑
摘要: https://zhinan.sogou.com/guide/detail/?id=316512383339 阅读全文
posted @ 2019-04-27 13:28 在学习编程的lsy呀 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: 问题 :Uncaught TypeError: Cannot read property ‘split’ of undefinedat HTMLLIElement. split()切割的问题 因为遍历ul的时候,第一次会得到一个空值,这个是通过输出遍历的对象知道的,最后我在使用split()的时候加 阅读全文
posted @ 2019-04-26 18:23 在学习编程的lsy呀 阅读(3229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页