前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >实习第三周

实习第三周

作者头像
治电小白菜
发布2020-08-25 14:29:07
8330
发布2020-08-25 14:29:07
举报
文章被收录于专栏:技术综合技术综合

这周就开始实战做前端 主要就是angularjs制作前端页面以及调用后台接口实现登录登出,图标显示,列表显示,excel导出等功能。

1.js摆放位置

http://www.jianshu.com/p/a585488ec271

2.跨域问题相关,最后选择修改nginx配置实现跨域

了解各种跨域解决方案,jsonp只能get请求,fetch,jquery,还有postMessage,还有服务端配置。(postMessage主要是通过iframe访问与请求Api同域的可访问页面,然后通过那个页面来进行ajax请求)

1)服务端nginx解决跨域

https://enable-cors.org/ https://enable-cors.org/server_nginx.html

2)跨域相关知识

http://www.oschina.net/question/1014827_115277

3.localstorage.setItem("键",”值");

前端使用localstorage实现账户的记录以及token的记录,用于后面页面的判断显示,以及退出操作。

4. git修改之前的commit内容(没push)

git commit --amend 可以对上一次的提交做修改 push -f 如果上一次的提交已经push了,那么需要加f参数覆盖服务端,不过不建议这么搞

5.CSS的:nth-child(an+b) 选择器使用

:nth-child(an+b) 这个 CSS 伪类匹配文档树中在其之前具有 a_n+_b-1 个兄弟节点的元素,其中 n 为正值或零值。简单点说就是,这个选择器匹配那些在同系列兄弟节点中的位置与模式 an+b 匹配的元素。

代码语言:javascript
复制
.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;

6.Angularjs根据表格导出EXCEL

https://segmentfault.com/n/1330000010276616\

7.springboot

http://412887952-qq-com.iteye.com/?page=11 websocket:

8.Angular1路由替代品ui-router

由于要使用路由嵌套,所以内置的路由无法满足要求。使用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

9.域名解析相关

不要随便改解析,尤其是A记录 https://www.aliyun.com/zixun/content/6_18_205902.html

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1.js摆放位置
  • 2.跨域问题相关,最后选择修改nginx配置实现跨域
    • 1)服务端nginx解决跨域
      • 2)跨域相关知识
      • 3.localstorage.setItem("键",”值");
      • 4. git修改之前的commit内容(没push)
      • 5.CSS的:nth-child(an+b) 选择器使用
      • 6.Angularjs根据表格导出EXCEL
      • 7.springboot
      • 8.Angular1路由替代品ui-router
      • 9.域名解析相关
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档