Java-byte转换 1 import org.springframework.stereotype.Component; 2 import org.springframework.util.StringUtils; 3 4 import java.io.*; 5 6 /** 7 * byte和各 ...
分类:
编程语言 时间:
2020-07-16 21:22:56
阅读次数:
81
1 springvmc采用经典的三层分层控制结构,在持久层,业务层和控制层分别采用@Repository、@Service、@Controller对分层中的类进行注解,而@Component对那些比较中立的类进行注解 2 @Mapper注解 https://www.cnblogs.com/muxi0 ...
分类:
编程语言 时间:
2020-07-16 18:32:04
阅读次数:
68
1.React.Component定义react组件的基类。 2.React.PureComponent使用请确保子组件都是纯组件,由于其实现了shouldComponentUpdate() 将跳过所有子组件树的 prop 更新。 3.React.memo 仅检查 props 变更。如果函数组件被 ...
如何在表格td里增加一个按钮:如何在列表操作列区域添加按钮 初始化表格 table.bootstrapTable --》columns 增加: { field: 'operate', title: __('Operate'), table: table, buttons: [ {name: 'det ...
分类:
其他好文 时间:
2020-07-16 12:21:04
阅读次数:
109
在Cocos Creator游戏开发中,有几个非常重要的基础知识大家必须掌握,就是场景、场景树、节点Node、组件Component。 一、 什么是场景和场景树 一个游戏中可以有多个场景(例如登录场景、修改密码场景、游戏主场景等等),在游戏中通过代码逻辑来控制场景跳转。几乎所有的场景的根节点都是Ca ...
分类:
其他好文 时间:
2020-07-16 10:10:35
阅读次数:
85
Spring注解总结 @Compoent 在配置的包中的类上使用 @Component 注解,则这个类会自动被注册为bean。Spring容器解析到@Component注解时,创建当前类的bean在spring容器中进行管理。 @Bean 作用在方法上,将返回对象注册为Spring的bean,默认自 ...
分类:
编程语言 时间:
2020-07-16 00:25:24
阅读次数:
77
路由配置:{path:'/login',name:'Login',component:Login}, 1.页面携带query参数跳转(path,name指定跳转到Login时都可以携带query参数) this.$router.push({ path:'/login',name:'Login', q ...
分类:
其他好文 时间:
2020-07-15 23:50:27
阅读次数:
130
一、注册组件 1.全局注册 利用Vue.component()方法,先传入一个自定义组件的名字,然后传入这个组件的配置。 然后就可以在Vue实例挂载的DOM元素中使用它。 Vue.component('mycomponent',{ template: `<div>这是一个自定义组件</div>`, ...
分类:
其他好文 时间:
2020-07-15 23:49:34
阅读次数:
66
恢复内容开始 1.配置路由 { path: '/hellow', name:"hellow", component: hellow, meta:{title:"hellow"} } 2,在mount里面赋值 mounted(){ this.title=this.$route.matched; }, ...
分类:
Web程序 时间:
2020-07-15 23:29:58
阅读次数:
171
类下载地址 https://github.com/PHPOffice/PHPExcel require_once './Classes/PHPExcel.php'; $obj = new PHPExcel(); $objSheet = $obj->getActiveSheet(); //获取shee ...
分类:
Web程序 时间:
2020-07-15 15:06:52
阅读次数:
117