摘要: 使用画布来生成二维码 <div class="canvascode"> <img id="img3" style="width: 100%;height: 100%;"/> //背景图片 <canvas id="myCanvas" class="hide" width="750" height="1 阅读全文
posted @ 2021-10-14 11:40 哈哈咖咖 阅读(42) 评论(0) 推荐(0) 编辑
摘要: winform的lable文本没办法复制,可以使用其他控件模拟它的外观+设置不可编辑以模拟lable文本 1. 使用TextBox控件 (1)设置属性让它的外观和lable一样 TextBox1.BackColor = System.Drawing.SystemColors.ControlTextB 阅读全文
posted @ 2021-09-30 15:49 哈哈咖咖 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: 窗口跳转 技能点:1. 带参跳转 2. 子窗体更改父窗体属性 (1)从A页跳到B页 new FormB(2) { Owner = this }.ShowDialog(); (2)B页 《1》更改无参构造函数为有参构造函数,接收参数 public FormB(int s) { rk = s; Init 阅读全文
posted @ 2021-09-30 15:24 哈哈咖咖 阅读(231) 评论(0) 推荐(0) 编辑
摘要: var result = confirm("联系方式:" + <%=fCellPhone%>) if (result) { //用户点击确定按钮 } else { //用户点击取消按钮 } 阅读全文
posted @ 2021-09-24 12:29 哈哈咖咖 阅读(449) 评论(0) 推荐(0) 编辑
摘要: jQuery 去除字符串中的空格 $("#txtCode").val().trim().replace(/\s/g,""); .val():获取本元素的内容 .trim():去除首尾的空白字符 .replace(/\s/g,""):去除中间的空白字符 转载于: https://blog.csdn.n 阅读全文
posted @ 2021-09-14 09:50 哈哈咖咖 阅读(526) 评论(0) 推荐(0) 编辑
摘要: wrap() 把匹配的元素用指定的内容或元素包裹起来。 wrapAll() 把匹配的元素用指定的内容或元素包裹起来。 wrapinner() 将每一个匹配的元素的内容用指定的内容或元素包裹起来。 例: <p>This is a paragraph.</p> <p>This is another pa 阅读全文
posted @ 2021-09-06 15:32 哈哈咖咖 阅读(69) 评论(0) 推荐(0) 编辑
摘要: js中 this与that 在JavaScript中,this代表的是当前对象。 var that=this就是将当前的this对象复制一份到that变量中。这样做有什么意义呢?//绑定事件bindEvent:function(){ var that=this; $("btn_buy").oncli 阅读全文
posted @ 2021-09-06 11:48 哈哈咖咖 阅读(709) 评论(0) 推荐(0) 编辑
摘要: margin、padding 都是顺时针方向,上右下左 margin: 10px 5px 15px 20px; //padding同 上 右 下 左 margin : 10px 5px 15px; //padding同 上 右左 下 margin: 10px 5px; //padding同 上下 右 阅读全文
posted @ 2021-09-03 11:13 哈哈咖咖 阅读(133) 评论(0) 推荐(0) 编辑
摘要: .pmblack, .tipback { position: fixed; z-index: 30; background-color: rgba(0, 0, 0, 0.5); width: 100%; height: 100%; left: 0; top: 0; } <!--公共屏幕变黑弹出层-- 阅读全文
posted @ 2021-08-30 10:24 哈哈咖咖 阅读(26) 评论(0) 推荐(0) 编辑
摘要: <ol> <li>a</li> <li>b</li> <li>c</li> </ol> $("ol li").click(function () { $(this).addClass("active").siblings().removeClass("active"); //被点击的元素新增acti 阅读全文
posted @ 2021-08-29 10:56 哈哈咖咖 阅读(15) 评论(0) 推荐(0) 编辑