这周就开始实战做前端 主要就是angularjs制作前端页面以及调用后台接口实现登录登出,图标显示,列表显示,excel导出等功能。
了解各种跨域解决方案,jsonp只能get请求,fetch,jquery,还有postMessage,还有服务端配置。(postMessage主要是通过iframe访问与请求Api同域的可访问页面,然后通过那个页面来进行ajax请求)
https://enable-cors.org/ https://enable-cors.org/server_nginx.html
前端使用localstorage实现账户的记录以及token的记录,用于后面页面的判断显示,以及退出操作。
git commit --amend 可以对上一次的提交做修改 push -f 如果上一次的提交已经push了,那么需要加f参数覆盖服务端,不过不建议这么搞
:nth-child(an+b) 这个 CSS 伪类匹配文档树中在其之前具有 a_n+_b-1 个兄弟节点的元素,其中 n 为正值或零值。简单点说就是,这个选择器匹配那些在同系列兄弟节点中的位置与模式 an+b 匹配的元素。
.personManage-search-div input:nth-child(1) {width: 338px;height: 28px;}
.personManage-search-div input:nth-child(2) {width: 164px;height: 28px;}
.personManage-search-div select:nth-child(3) { width: 115px;height: 28px;}
.personManage-search-div select:nth-child(4) {width: 115px;height: 28px;}
.personManage-search-div select:nth-child(5) {width: 115px;height: 28px;
http://412887952-qq-com.iteye.com/?page=11 websocket:
由于要使用路由嵌套,所以内置的路由无法满足要求。使用ui-router可以解决 github:https://github.com/angular-ui/ui-router 官方文档(angular1 ui-router):https://ui-router.github.io/ng1/ 路由嵌套:https://yq.aliyun.com/articles/59333
不要随便改解析,尤其是A记录 https://www.aliyun.com/zixun/content/6_18_205902.html