DragDrop 事件没作用 文件拖入
田螺 发布于 10-13
需要配置参数,选择目标-》右侧属性中的AllowDrop=true其次在右侧的事件中找到:DragDrop,DragEnter分别把下面两句拖进去主要是这两处代码:privatevoidForm1_DragEnter(objectsender,DragEventArgse){if(e.Data.GetDataPresent(DataFormats...
阅读(82) 评论(0)
田螺 发布于 10-13
需要配置参数,选择目标-》右侧属性中的AllowDrop=true其次在右侧的事件中找到:DragDrop,DragEnter分别把下面两句拖进去主要是这两处代码:privatevoidForm1_DragEnter(objectsender,DragEventArgse){if(e.Data.GetDataPresent(DataFormats...
阅读(82) 评论(0)
田螺 发布于 10-10
--序列化--序列化时只需传入obj的值,其它保持nilfunctionserialize(obj,name,newline,depth)localspace=newlineand""or""newline=newlineandtruedepth=depthor0ifdepth>10thenreturn"..."endlocaltmp=st...
阅读(65) 评论(0)
田螺 发布于 10-10
for/r%%iin(*.ans)doren%%i*.out批处理的一行代码便解决问题解决问题。。。。。@echooffsetnum=0For/r.%%iin(*.ans)do(set/anum+=1echo%%icallecho第%%num%%个文件处理成功ren%%i*.out)echo共%num%个文件被处理成功pause>nul程序...
阅读(69) 评论(0)
田螺 发布于 9-27
unity5.x中使用了新的资源打包方法,代替4.x时代的BuildAssetBundle方法。但是新的打包方法生成的资源是没有mainAsset的,即assetBundle.mainAsset返回null。但是老代码里需要访问mainAsset的地方怎么办呢,可以使用如下方法:publicstaticUnityEngine.ObjectgetM...
阅读(71) 评论(0)
田螺 发布于 8-16
usingUnityEngine;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.IO;usingUnityEditor;usingUnityEditor.Animations;publicclassBuildAnimation:Editor{//生成出的Pr...
阅读(101) 评论(0)
田螺 发布于 8-15
//延时发送抢单请求ajaxT=setTimeout(()=>{$.ajax({url:"{:url('submit_order')}",type:"POST",dataType:"JSON",data:{},success:(res=>{console.log(res)status=trueif(res.code==0){QS_to...
阅读(94) 评论(0)
田螺 发布于 8-15
functionis_mobile($tel){if(preg_match("/^1[345789]{1}\d{9}$/",$tel)){returntrue;}else{returnfalse;}}/**检查图片是不是bases64编码的*/functionis_image_base64($base64){if(preg_match('/^(d...
阅读(91) 评论(0)
田螺 发布于 8-15
//生成随机用户名functionget_username(){$chars1="ABCDEFGHIJKLMNOPQRSTUVWXYZ";$chars2="abcdefghijklmnopqrstuvwxyz0123456789";$username="";for($i=0;$i<mt_rand(2,3);$i++){$username.=...
阅读(102) 评论(0)
田螺 发布于 8-15
/***修改本地配置文件**@paramarray$name['配置名']*@paramarray$value['参数']*@returnvoid*/functionsetconfig($name,$value){if(is_array($name)andis_array($value)){for($i=0;$i<count($name);...
阅读(60) 评论(0)
田螺 发布于 8-15
/***判断当前时间是否在指定时间段之内*@paraminteger$a起始时间*@paraminteger$b结束时间*@returnboolean*/functioncheck_time($a,$b){$nowtime=time();$start=strtotime($a.':00:00');$end=strtotime($b.':00:00...
阅读(63) 评论(0)
最新评论
文章不错交个朋友
签到成功!签到时间:2021/4/15 ...
[code]签到成功!签到时间:2021...
@田刚:回复看一下
利用jquery 来实现tag的切换函数...
喜欢 这个博客程序