随笔分类 -  JQuery

摘要:/** * 获取某月最后一天 * @param year * @param month * @returns {number} */ getLastDay(year, month) { var new_year = year; //取当前的年份 var new_month = month++;//取 阅读全文
posted @ 2021-05-20 10:51 py卡卡 阅读(148) 评论(0) 推荐(0) 编辑
摘要:jQuery 根据value设置radio默认选中:HTML: 132 456 JS: var sex = 2; $(":radio[name='rbsex'][value='" + sex + "']").prop("checked", "checked"); 阅读全文
posted @ 2017-10-25 16:44 py卡卡 阅读(17758) 评论(0) 推荐(2) 编辑
摘要:1 针对textarea剩余字数统计 2 3 留言: 你还可以输入500个字 4 5 6 阅读全文
posted @ 2017-10-23 11:06 py卡卡 阅读(518) 评论(0) 推荐(0) 编辑
摘要:图片展示: <html> <body> <img src="/i/eg_tulip.jpg" alt="上海鲜花港 - 郁金香" /> </body></html> 1. 通过css3 实现图片旋转 <style>img{ -webkit-transform:rotate(90deg); }/*顺时 阅读全文
posted @ 2017-08-04 17:28 py卡卡 阅读(357) 评论(0) 推荐(0) 编辑
摘要:网站聊天样式,无论添加什么内容div的滚动条都显示在最底端 将div添加滚动条,给div一定的高度 <div id='up' style='height:100px; width:400px;overflow-y:scroll; border: 1px solid #999;'><ul><li>12 阅读全文
posted @ 2017-05-10 15:49 py卡卡 阅读(927) 评论(0) 推荐(0) 编辑
摘要:<div class="col-sm-9"> <select id="device-type" class="form-control" name="Device[type]"> <option value="0">请选择设备类型</option> <option value="3">低压出线柜</ 阅读全文
posted @ 2017-03-13 15:58 py卡卡 阅读(1344) 评论(0) 推荐(0) 编辑
摘要:getErrors('province_id') || $model->getErrors('city_id') || $model->getErrors('district_id')):?>has-errorhas-success"> 配电室所在地区 '请选择省份'], Area::getArrayForInput(0)), ['cl... 阅读全文
posted @ 2017-03-07 14:29 py卡卡 阅读(202) 评论(0) 推荐(0) 编辑
摘要:history.back() 或 history.go(-1) 阅读全文
posted @ 2017-02-09 14:08 py卡卡 阅读(197) 评论(0) 推荐(0) 编辑
摘要:1 2 3 4 清除文件缓存 5 6 7 8 12 1 //yii2.0目录删除,删除成功输出1 2 3 public function actionDelfilecache() 4 { 5 $cachePath = Yii::getAlias('@app/runtime/cache'); 6... 阅读全文
posted @ 2017-01-19 16:01 py卡卡 阅读(1118) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示