摘要: 1 .join() 数组转换为字符串 将数组中的所有元素用指定的分隔符分隔后转换为一个字符串 2 . split() 字符串转换为数组 指定字符串中的分隔符为依据来分隔成数组 阅读全文
posted @ 2019-10-25 19:31 prospective 阅读(30852) 评论(0) 推荐(1) 编辑
摘要: 在开发中经常会用到获取url链接中携带的某参数来做一些判断设置function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) ... 阅读全文
posted @ 2019-10-25 19:23 prospective 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1.图片的淡出效果 fadeIn $(document).ready(function(){ $("#div").fadeIn("slow");}); <div id="div" style="width:80px;height:80px;display:none;background-color: 阅读全文
posted @ 2019-10-25 19:08 prospective 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 1.在html文件中通过属性来设置显示的字体颜色 2.在根组件中注册了服务的,在子组件中就不需要再单独注册,否则就会导致多次触发的问题 3.angular中根据某列数据进行升序或者降序排列时,需要对数据进行深度拷贝,否则不能正常执行升序降序的处理 4.订阅的使用: new Subject( )创建可 阅读全文
posted @ 2019-10-25 19:01 prospective 阅读(217) 评论(0) 推荐(0) 编辑