摘要: ## 1.遍历key,value - Set ```java Map fieldsMap = new HashMap(); Set keySet = fieldsMap.keySet(); for (String key : keySet) { System.out.println(key + " 阅读全文
posted @ 2023-08-16 19:16 lwx_R 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ## 1.加法 ``` String a1 = "123.5"; String a2 = "123.5"; BigDecimal bigDecimal = new BigDecimal(a1); BigDecimal bigDecimal1 = new BigDecimal(a2); Double 阅读全文
posted @ 2023-08-16 19:10 lwx_R 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 程序在运行中过程中,对于任何一个类都能知道它所有的属性和方法,对于任意一个对象,都能知道调用它的任意属性和方法。 ## 1.获得setter,getter方法 ```java MyObject myObject = new MyObject(); //反射调用getter方法 Method getM 阅读全文
posted @ 2023-08-16 19:04 lwx_R 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ## 1.父传子 - 利用ref [https://www.cnblogs.com/lwx11111/p/17629539.html]() - props 子组件 ```js props: { inputName: String, } ``` - 父组件 ```js ``` ## 2.子传父 ### 阅读全文
posted @ 2023-08-16 18:58 lwx_R 阅读(12) 评论(0) 推荐(0) 编辑