LinMeng LinMeng
3年前
input 获取焦点,键盘遮挡页面
移动端开发中常遇到的就是键盘遮挡问题,下面提供项目中的写法:window.addEventListener('resize',(){constactiveElementdocument.activeElement;if(activeElement.tagName'INPUT'||activeElement.t
LinMeng LinMeng
3年前
解决ios软键盘收回时屏幕空白问题
添加事件:window.scrollTo(x,y)在input的释焦事件中添加blur事件,参数X要在窗口文档显示区左上角显示的文档的x坐标。参数y要在窗口文档显示区左上角显示的文档的y坐标。添加jQuery插件mounted(){//解决ios软键盘弹出屏幕空白$("input,select,te
Stella981 Stella981
2年前
PHP导入导出EXCELl,CSV
PHP导入导出Excel,CSVHTML<formaction"{:U('Admin/Unit/importcsv')}"method"post"name"myform"id"myform"enctype"multipart/formdata"<input
Stella981 Stella981
2年前
Angular组件交互
Angular2中的组件交互方式很多,可分为父子组件交互和非父子组件交互两种情况。在学习之前需要了解组件的@Input(https://my.oschina.net/InPuto)和@Output(https://my.oschina.net/output1314)的用法//子组件中内容@Input()绑定的属性名
Easter79 Easter79
2年前
Vue + Element 实现动态添加input
 此篇博客背景:项目开发技术为vueelement,需求为form表单中动态添加input表单,本element中有现成form动态添加案例,但ui小姐姐效果图与ui库有些微差别,固重新整理。废话不多说啦,正式开始了:代码地址:https://codepen.io/newgingkgo/pen/gObMMow (备注:将代码复制至vue项目即可查看
Stella981 Stella981
2年前
ELK学习笔记之配置logstash消费kafka多个topic并分别生成索引
0x00 filebeat配置多个topicfilebeat.prospectors:input_type:logencoding:GB2312fields_under_root:truefields:添加字段
Stella981 Stella981
2年前
Laravel 控制器的request
publicfunctionrequest1(Request$request){//取值$nameRequest::input('name');//是否有值if($requesthas('name')){echo$requestinput('name');}$res
Wesley13 Wesley13
2年前
525. Contiguous Array
Givenabinaryarray,findthemaximumlengthofacontiguoussubarraywithequalnumberof0and1.Example1:Input:0,1Output:2Explanation:0,1isthelo
Stella981 Stella981
2年前
Jenkins input插件最佳实践(交互)
!(https://oscimg.oschina.net/oscnet/0f9403f79d90ad09c27156c94b716d06d7c.jpg"undefined")DevOps持续集成点击关注可弹出隐藏图片End!(https://oscimg.oschina.net/oscnet/2dcadb404092843b
Wesley13 Wesley13
2年前
Unity 角色攻击
//按下J键进行攻击if(Input.GetKeyDown(KeyCode.J)){//切换到攻击的动画anim.SetTrigger("Launch