自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 React组件的三大属性

一、stateclass MyComponent extends React.Component { constructor(props) { // 固定写法 super(props) // 初始化state this.state = { flag: true, manner: '你是对的' } // bind() 返回一个被指定当前this的新函数 this.cha

2021-12-12 20:16:35 471

原创 React入门

一、Hello React1、准备容器<div id="test"></div>2、引入react核心库<script type="text/javascript" src="../js/react.development.js"></script>3、引入react-dom,用于支持react操作DOM<script type="text/javascript" src="../js/react-dom.development.js"&

2021-12-09 20:38:51 103

原创 SpringMVC的请求和响应

一、 SpringMVC的数据响应1、页面跳转(1)返回字符串形式@Controller@RequestMapping("/user")public class QuickController { @RequestMapping("/quick") public String quickMethod() { System.out.println("quickMethod running"); return "success"; }}(2

2021-11-30 21:02:14 1315

原创 SpringMVC入门

一、 Spring集成web环境1、在web.xml中配置ContextLoaderListener监听器(导入spring-web坐标)(1) 导入Spring集成web的坐标<dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>5.0.5.RELEASE</v

2021-11-30 21:01:44 342

原创 spring注解开发

一、 Spring基本注解注解@Component使用在类上用于实例化Bean@Controller使用在web层类上用于实例化Bean@Service使用在service层类上用于实例化Bean@Repository使用在dao层类上用于实例化Bean@Autowired使用在字段上用于根据类型依赖注入@Qualifier结合@Autowired一起使用用于根据名称进行依赖注入@Resource相当于@Autowired+@Quali

2021-11-28 20:28:58 59

原创 spring入门篇

一、Spring的快速上手1、 导入Spring开发的基本包坐标<properties> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> <spring.version>5.0.5.RELEASE</spring.version></prope

2021-11-25 21:27:33 370

原创 Vuex的快速上手

Vuex的快速上手import { createStore } from 'vuex'export default createStore({ state: { }, mutations: { }, actions: { }, getter: { }})1. stateState 提供唯一的公共数据源,所有共享的数据都要统一放到 Store 的 State 中进行存储。 state { count:0 }组件的访问(1) this.$store.sta

2021-11-11 21:50:36 434

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除