摘要:
emCombobox.Items[2].IsEnabled = false; 隐藏下拉框里面的一个item wpf 单例模式。 [DllImport("user32", CharSet = CharSet.Unicode)] static extern IntPtr FindWindow(strin 阅读全文
摘要:
如何防止回车(enter)键提交表单,其实很简单,就一句话。onkeydown="if(event.keyCode==13)return false;"把这句写在from标签里面就好了。 阅读全文
摘要:
white-space:normal;就是正常,和不设置一样,连续空格和空行都只会显示一个空格。 white-space:nowrap;不换行是什么意思呢?正常情况下,当我们的文本超出了文本域,文本就会自动折行,这个设置就是说不自动折行了,而是碰到换行标签<br />才换 white-space:p 阅读全文
摘要:
$("input[name='bankCardType']").val("sdf"); $('input:radio[name="bankCardType"]').attr("checked",false); 验证半角字符和半角日文输入 str="中文;;a" alert(str.match(/[\ 阅读全文
摘要:
function deldir($dir) { $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $file!="..") { $fullpath=$dir."/".$file; if(!is_dir($fullpath 阅读全文
摘要:
php,获得url,传入下一个页面,返回时载入 获取url方法: 阅读全文
摘要:
event.returnValue的作用就是:当捕捉到事件(event)时,判断为false,则阻止当前事件继续运行,window.event.returnValue = false;之后的语句将都不会执行。 return false 不是阻止事件继续向顶层元素传播,而是阻止浏览器对事件的默认处理。 阅读全文
摘要:
whereunix_timestamp(license_effective_period) >= unix_timestamp('2000-09-12') 阅读全文
摘要:
style="white-space:nowrap;"不自动换行<font color="" size=""></font>设字体yii2 gridview 'contentOptions'=>['style'=>'min-width:100px'],控制列的宽度'format' => ['date 阅读全文
摘要:
给checkbox(在GridView里的)添加一个value 阅读全文