摘要: 使用js去除字符串内所带有空格,有以下三种方法: ( 1 ) replace正则匹配方法 去除字符串内所有的空格:str = str.replace(/\s*/g,""); 去除字符串内两头的空格:str = str.replace(/^\s*|\s*$/g,""); 去除字符串内左侧的空格:str 阅读全文
posted @ 2021-09-08 17:10 智者见智 阅读(378) 评论(0) 推荐(0) 编辑
摘要: varchar(n) 长度为 n 个字节的可变长度且非 Unicode 的字符数据。n 必须是一个介于 1 和 8,000 之间的数值。存储大小为输入数据的字节的实际长度,而不是 n 个字节。 nvarchar(n) 包含 n 个字符的可变长度 Unicode 字符数据。n 的值必须介于 1 与 4 阅读全文
posted @ 2021-09-08 17:03 智者见智 阅读(13100) 评论(0) 推荐(0) 编辑
摘要: /*设置奇数行颜色*/ table tr:nth-child(odd) { background: #ccc; } /*设置偶数行颜色*/ table tr:nth-child(even) { background: #ccc; } 阅读全文
posted @ 2021-09-08 16:43 智者见智 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 解决方案: <a href="javascript:void(0);" >超链接</a> 阅读全文
posted @ 2021-09-08 16:27 智者见智 阅读(62) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> var reg1 = /^[\u4e00-\u9fa5]/; //是否包含中文;包含中文=true reg1.test('中文1'); //返回true var reg2=/^[\u4E00-\u9FA5]+$/; //是否全部是中文; 阅读全文
posted @ 2021-09-08 16:26 智者见智 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 问题描述: JS拼接页面元素时,vue的onclick事件报错 解决方案: <script type="text/javascript"> //新增包裹控件 CopyPackageControl: function () { var oTable = document.getElementById( 阅读全文
posted @ 2021-09-08 16:23 智者见智 阅读(1375) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 使用div进行开发,需要对数字型的文本框进行验证的同时只能输入数字,不可输入其他的内容 解决方案: <!DOCTYPE html> <html> <head> <title></title> <link href="/new_website/scripts/layui/css/layui 阅读全文
posted @ 2021-09-08 16:20 智者见智 阅读(1836) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> .orderType_selector { border-bottom: 1px solid rgb(232, 232, 232); height: 48px; } .orderType_selector li { padding: 14px 25px 阅读全文
posted @ 2021-09-08 16:15 智者见智 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 绑定img路径 <img style="width: 70px;" v-bind:src="seckill.ActivityImage" /> 复选框绑定ID值 <input name='items' style='width: 20px; text-align: center' type='che 阅读全文
posted @ 2021-09-08 16:13 智者见智 阅读(45) 评论(0) 推荐(0) 编辑