大约有 45,000 项符合查询结果(耗时:0.0473秒) [XML]

https://www.tsingfun.com/it/tech/1643.html 

PHP连接MySQL报错:Fatal error: Call to undefined function mysql_connec...

...; $password='mysql'; $conn=mysql_connect($host,$user_name,$password); if (!$conn) { die('数据库连接失败:'.mysql_error()); } echo '数据库连接成功!'; if (mysql_close($conn)) { echo '<br/>...<br/>'; echo '到数据库的连接已经成功关闭'; } ?> 在...
https://www.tsingfun.com/it/tech/1721.html 

phpcms后台表单多选统计不准确的解决方法 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...码修改: phpcms\modules\formguide\templates\formguide_stat.tpl.php if(trim($__v[$v['field']])==trim($_kv)) $number++; 改为: if(strpos(trim($__v[$v['field']]), trim($_kv)) !== false) $number++; 这样就完全OK了。phpcms 后台表单 多选统计
https://www.tsingfun.com/it/tech/1779.html 

NSIS脚本编程(持续更新) - 更多技术 - 清泛网 - 专注C/C++及内核技术

...】取消安装' \ "是" "否" "取消" NSIS编程if逻辑: 首先需要包含这个文件:!include logiclib.nsh Pop $0 ;获取messagebox的返回值,分别是1,2,3 ${If} $0 == 1 KillProcDLL::KillProc "xxx.exe" ${Elseif} $0 == 3 Abort ;退出安装 ${En...
https://www.tsingfun.com/it/tech/1780.html 

NSIS做的安装程序,可接受命令行参数,实现静默安装,静默卸载 - 更多技术 ...

...stparameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported. 3.2.2 Uninstaller Specific Options _?= sets $INSTDIR. It also stops the uninstaller from copying itself to the temporary directory and running from there. ...
https://www.tsingfun.com/it/tech/1781.html 

nsis安装、卸载时如何判断程序是否正在运行 并提示关闭? - 更多技术 - 清...

... 【取消】取消卸载' \ "终止" "取消" Pop $0 ${If} $0 == 1 KillProcDLL::KillProc "Test.exe" ${Elseif} $0 == 2 Abort ${EndIf} ;-------------------------------------------------------------- !include logiclib.nsh 不可少,引入后才能写${If}等逻辑判...
https://www.tsingfun.com/it/tech/1820.html 

C# 多线程、并行处理全攻略(持续更新) - 更多技术 - 清泛网 - 专注C/C++及内核技术

...委托主线程执行 private void Proxy(ProxyInvoker invoke) { if (invoke == null) return; if (this.InvokeRequired) { this.Invoke(invoke); return; } invoke(); } #endregion 那么为什么需...
https://www.tsingfun.com/it/tech/2242.html 

Linux/Windows批量删除.svn文件夹(svn delete) - 更多技术 - 清泛网 - 专注C/C++及内核技术

...cho on @rem 删除SVN版本控制目录 @rem for /r . %%a in (.) do @if exist "%%a\.svn" @echo "%%a\.svn" @for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn" @echo completed @pause 方法二:右键菜单“Delete SVN Folders”删除指定目录下的.svn文件夹,需...
https://www.tsingfun.com/it/tech/2277.html 

扩展jQuery的功能限制只能输入数字 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...isabled'; }); }; /* 正则校验 */ function regNum(number) { if (/^[0-9]+(\.[0-9]+)?$/.test(number)) return true; else return false; } 这里通过正则校验来确定允许输入的格式,例中是进行数字的校验,用户可以输入小数,用户第...
https://www.tsingfun.com/it/tech/2285.html 

layer弹窗 绑定回车关闭事件 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...ess: function(layero, index){ this.enterEsc = function(event){ if(event.keyCode === 13){ layer.close(index); return false; //阻止系统默认回车事件 } }; $(document).on('keydown', this.enterEsc); //监听键盘事件,关闭层 } ,end: fun...
https://www.tsingfun.com/down/code/55.html 

两种js滑动门(tab切换)效果 - 源码下载 - 清泛网 - 专注C/C++及内核技术

...tyle> <script type="text/javascript"> function nTabs(thisObj,Num){ if(thisObj.className == "active")return; var tabObj = thisObj.parentNode.id; var tabList = document.getElementById(tabObj).getElementsByTagName("li"); for(i=0; i <tabList.length; i++) { if (i == Num) { th...