摘要: 最近做项目的时候,需要将服务器中的数据渲染到页面中,但是需要给数据增加一个显示隐藏标记isShow,折腾了半天就是不进行视图更新。。。于是百度了N久,最终找到了原因,这里转载一下。以便帮助到更多的人~~ 资料来源: 1.https://www.cnblogs.com/zjw2004112/p/115 阅读全文
posted @ 2020-03-30 11:24 Katherine蓝羽 阅读(61) 评论(0) 推荐(0)
摘要: 1.npm npm config set registry https://registry.npm.taobao.org 2.yarn yarn config set registry https://registry.npm.taobao.org 阅读全文
posted @ 2020-01-31 15:48 Katherine蓝羽 阅读(53) 评论(0) 推荐(0)
摘要: 参考资料: https://blog.csdn.net/function__/article/details/84950897 在编写前端页面代码时,特别是编写移动端页面时,元素尺寸及字体大小问题值得关注,为了在不同屏幕上达到高度自适应,就会用到各种单位进行转换,今天就来总结一下每个单位的用法与区别 阅读全文
posted @ 2019-12-17 10:05 Katherine蓝羽 阅读(393) 评论(0) 推荐(0)
摘要: 参考资料: https://blog.csdn.net/weixin_43915587/article/details/90905961 slot插槽:简单讲就是想在父组件使用子组件时,给子组件传递一些特定的结构内容,先在子组件内设定一块儿占位区域,最后将传进去的结构内容放置在占位区即可 注:它的内 阅读全文
posted @ 2019-12-12 15:45 Katherine蓝羽 阅读(48) 评论(0) 推荐(0)
摘要: 参考资料: https://www.jianshu.com/p/87008f4f8513 https://www.cnblogs.com/liquanjiang/p/8909992.html https://www.jianshu.com/p/ac1787f6c50f https://blog.cs 阅读全文
posted @ 2019-12-10 15:45 Katherine蓝羽 阅读(53) 评论(0) 推荐(0)
摘要: 参考资料: https://www.cnblogs.com/taokele/p/8528861.html https://www.jianshu.com/p/8a8f7b0f887a 最近总结ES6时发现,如果js使用ES6进行编写后,需要兼容IE就必须将ES6语法转换为ES5,则搜集了一下相关资料 阅读全文
posted @ 2019-12-10 12:18 Katherine蓝羽 阅读(100) 评论(0) 推荐(0)
摘要: 参考资料: https://www.cnblogs.com/huangxingquan/p/7601762.html https://www.cnblogs.com/echolun/p/7646025.html 这几个方法比较容易混淆,故总结一下: 1.substr 截取指定长度字符串;字符串使用, 阅读全文
posted @ 2019-12-09 15:05 Katherine蓝羽 阅读(68) 评论(0) 推荐(0)
摘要: 资料来源: https://blog.csdn.net/qq_39207948/article/details/85956861 http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html 学习了flex,看了很多相关介绍,自己也来总结一下。 f 阅读全文
posted @ 2019-12-09 14:44 Katherine蓝羽 阅读(96) 评论(0) 推荐(0)
摘要: 转发自:https://www.cnblogs.com/hnwangcong/p/8039445.html AJAX 是一种与服务器交换数据的技术,可以在补充在整个页面的情况下更新网页的一部分。常用的使用方式有以下四种: 1.$.ajax()返回其创建的XMLHttpRequest对象。 $.aja 阅读全文
posted @ 2019-10-30 14:13 Katherine蓝羽 阅读(36) 评论(0) 推荐(0)
摘要: 1.创建请求 2.准备发送(配置参数) 注: 1)get请求数据时,将参数写入url中,exp: "/ajax/01?username="+username 2)post请求数据时,url只写路径,不加参数 3)post请求数据时,要加请求头:xhr.setRequestHeader("conten 阅读全文
posted @ 2019-10-28 14:10 Katherine蓝羽 阅读(37) 评论(0) 推荐(0)