- 博客(11)
- 收藏
- 关注
转载 wpf1
emCombobox.Items[2].IsEnabled = false;隐藏下拉框里面的一个itemwpf 单例模式。[DllImport("user32", CharSet = CharSet.Unicode)] static extern IntPtr FindWindow(string cls, string win); [DllI...
2019-04-22 14:32:00
98
转载 防止enter提交表单
如何防止回车(enter)键提交表单,其实很简单,就一句话。onkeydown="if(event.keyCode==13)return false;"把这句写在from标签里面就好了。转载于:https://www.cnblogs.com/lzhangxiaohupi/p/8392468.html...
2018-01-31 15:24:00
103
转载 html保留空格
echo '<div style="white-space:pre-wrap">○ '.$noticeInfo[$i]['content'].'</div>';white-space:normal;就是正常,和不设置一样,连续空格和空行都只会显示一个空格。white-space:nowrap;不换行是什么意思呢?正常情况下,当我们的文本超出了文本域,文本就...
2018-01-31 10:18:00
141
转载 radio选中与不选中
$("input[name='bankCardType']").val("sdf"); $('input:radio[name="bankCardType"]').attr("checked",false);验证半角字符和半角日文输入str="中文;;a" alert(str.match(/[\u0000-\u00ff]/g)) //半角 ...
2018-01-22 13:40:00
156
转载 php删除文件夹
function deldir($dir) { $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $file!="..") { $fullpath=$dir."/".$file; i...
2018-01-17 15:46:00
76
转载 搜索条件以及结果返回
php,获得url,传入下一个页面,返回时载入获取url方法:$model->url=Yii::$app->request->referrer;载入:$this->redirect($_POST['DatInstallationInfo']['url']);$.pjax.reload({container:"#countries"});$("i...
2017-12-25 16:21:00
177
转载 取消默认事件更牛逼的做法
event.returnValue的作用就是:当捕捉到事件(event)时,判断为false,则阻止当前事件继续运行,window.event.returnValue = false;之后的语句将都不会执行。return false 不是阻止事件继续向顶层元素传播,而是阻止浏览器对事件的默认处理。转载于:https://www.cnblogs.com/lzhangxiao...
2017-12-21 18:17:00
103
转载 js滚动条滚动到底部触发事件
$("#contain").scroll(function(){ var $this =$(this), viewH =$(this).height(),//可见高度 contentH =$(this).get(0).scrollHeight,//内容高度 scrollTop =$(this).scrollTop();//滚动高度 i...
2017-12-12 15:49:00
173
转载 style样式不换行
style="white-space:nowrap;"不自动换行<font color="" size=""></font>设字体yii2 gridview'contentOptions'=>['style'=>'min-width:100px'],控制列的宽度'format' => ['date', 'yyyy/MM/dd HH:mm:s...
2017-12-06 17:05:00
1006
转载 yii2 gridview checkbox
给checkbox(在GridView里的)添加一个value控制器:$dataProvidermStu->key = "student_no";view:[ 'class' => 'yii\grid\CheckboxColumn', 'checkboxOptions' => function ($model, $key, $index, $colu...
2017-12-04 16:55:00
454
转载 yii js
页面url拼接以及页面跳转var baseUrl = '<?php echo Yii::$app->request->baseUrl ?>';var url = baseUrl + '/index.php?r=itsp01-dat-enterprise-info';window.location.href = url;javascript:void(0)不...
2017-12-02 12:10:00
98
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人