会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
飞渝
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2021年4月16日
Web Storage之localStorage,web客户端存储技术
摘要: 一、Web Storage概述: Web Storage可以在客户端本地存储数据可以用来保存:登录用户名,密码,游戏进度,浏览进度…… 类似HTML4的cookie,但可实现功能要比cookie强大的多,cookie大小被限制在4KB,Web Storage官方建议为每个网站5MB。 二、Web S
阅读全文
posted @ 2021-04-16 17:02 飞渝
阅读(156)
评论(0)
推荐(0)
2021年4月15日
H5《canvas》标签实现绘画板
摘要: 先上结果图: 注:本项目主要实现了:a、画图;b、清屏;c、橡皮擦;d、保存;e、颜色选择;f、粗细选择; 1.html代码 <div class="canvas"> <canvas width="800px" height="500px"></canvas> </div> <div class="
阅读全文
posted @ 2021-04-15 11:17 飞渝
阅读(270)
评论(0)
推荐(0)
2021年3月18日
layui全国地址选择器
摘要: 效果图: HTML代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <link rel="stylesheet" type="text/css" href="layui/css/layui.css"
阅读全文
posted @ 2021-03-18 10:06 飞渝
阅读(1340)
评论(0)
推荐(0)
常用数量加减器(购物数量加减)(点击加减号加减数量)
摘要: 只实现了常规加减有需要根据可以根据自己添加限制条件 先来效果图 HTML代码 <!-- 快速实现数量加减 --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <input id="min" name="" t
阅读全文
posted @ 2021-03-18 09:52 飞渝
阅读(1415)
评论(0)
推荐(0)
2021年3月12日
layui 数据表格table行高设置
摘要: <style type="text/css"> .layui-table-cell { height: auto; line-height: 28px; } </style>
阅读全文
posted @ 2021-03-12 18:01 飞渝
阅读(5966)
评论(0)
推荐(0)
常用的正则表达式及测试
摘要: //验证姓名正 /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/ 表达式全集 字符描述 \ 将下一个字符标记为一个特殊字符、或一个原义字符、或一个向后引用、或一个八进制转义符。例如,“n”匹配字符“n”。“\n”匹配一个换行符。串行“\\”匹配“\”而“\(”则匹配“
阅读全文
posted @ 2021-03-12 17:20 飞渝
阅读(678)
评论(0)
推荐(0)
2021年3月9日
<inpute>禁止输入方法
摘要: 1. readonly规定输入字段为只读可复制,但是,用户可以使用Tab键切换到该字段,可选择,可以接收焦点,还可以选中或拷贝其文本。 <input type="text" value="哈哈哈" readonly="readonly"> 2:disabled 被禁用的 input 元素可复制,不能
阅读全文
posted @ 2021-03-09 21:39 飞渝
阅读(240)
评论(0)
推荐(0)
<inpute>标签的type属性
摘要:
阅读全文
posted @ 2021-03-09 21:34 飞渝
阅读(100)
评论(0)
推荐(0)
2021年2月18日
window.open()跳转页面时需要传值情况(mvc例)
摘要: html代码 1 <script> 2 function open_win() { 3 window.open("@Url.Content("~/GoodsKind/CreateKinds")?oneKind=@ViewBag.OneKind", '', "height = 300, width =
阅读全文
posted @ 2021-02-18 01:40 飞渝
阅读(191)
评论(0)
推荐(0)
2021年2月17日
.NTE MVC中让ModelState验证部分属性方法
摘要: 全验证 if(ModelState.IsValid) { //验证成功要做的事 ..... } 验证属性多于不验证属性时 /// <summary> /// 验证实体模型中的部分属性 /// </summary> /// <param name="ModelState"></param> /// <
阅读全文
posted @ 2021-02-17 15:17 飞渝
阅读(76)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告