上一页 1 ··· 6 7 8 9 10
摘要: 需求如题:代码如下:<script language="javascript">function disableButton(button) { var btn =button; btn.disabled = true; setTimeout(function(){disable_in(btn);},6000);} function disable_in(button){ button.disabled=false;}</script>调用如下:<asp:Button ID="btdownload" runat=" 阅读全文
posted @ 2013-06-04 15:28 龍☆ 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 最近遇到一个需求:把powershell脚本添加到Windows计划任务中每天执行。刚开始看起来比较简单,但是当直接把ps1文件添加到Task Scheduler时,不能正常运行首先在powershell中开启运行脚本的权限为无限制的环境:然后在计划任务中执行任务进行测试,结果没能实现powershell中的功能。查看执行日志,发现运行脚本的实例居然是:Task Scheduler launch task "\PowerShell\powershell" , instance "C:\Windows\System32\notepad.exe" with 阅读全文
posted @ 2013-05-13 11:35 龍☆ 阅读(3245) 评论(0) 推荐(0) 编辑
摘要: 在IE中使用:onpropertychange,其他浏览器中使用:oninputoninput,onpropertychange,onchange的用法onchange触发事件必须满足两个条件:a)当前对象属性改变,并且是由键盘或鼠标事件激发的(脚本触发无效)b)当前对象失去焦点(onblur);onpropertychange的话,只要当前对象属性发生改变,都会触发事件,但是它是IE专属的;oninput是onpropertychange的非IE浏览器版本,支持firefox和opera等浏览器,但有一点不同,它绑定于对象时,并非该对象所有属性改变都能触发事件,它只在对象value值发生改变 阅读全文
posted @ 2013-04-24 17:05 龍☆ 阅读(380) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10