摘要:vue项目在npm run build部署之后,首次加载页面的时候请求巨慢,通过f12开发者工具检查得知,其中的静态文件加载较慢,如vendor.js,文件大小3.8M 参考博客:https://blog.csdn.net/weixin_44668908/article/details/109157
阅读全文
摘要:git clone https://gitee.com/lolicode/scui.git cd scui npm i 遇到报错:This is an error with npm itself. Please report this error at 解决方式: 删除node modules 和p
阅读全文
摘要:先说需求:数据实时更新渲染到页面页面高度随数据更新变化默认页面显示当前更新内容即滚动条处于页面最底部当用户进行鼠标滚轮向上滚动或者拖动滚动条向上时停止滚动条处于页面最底部操作当用户进行上一步操作后又向下滚动时 继续让滚动条保持最下思路:首先得监听页面的scroll时间并判断是向上或者向下滚动让滚动条
阅读全文
摘要:属性: :modal-append-to-body="false" 去掉黑色面罩 <template slot-scope="scope"> <el-button @click="queryDeployLog(scope.row)" type="primary" style="margin-left
阅读全文
摘要:npm run dev没毛病,但npm run build 报错如下: > node build/build.js ⠦ building for production...Error processing file: static/css/app.2b5a4ab0a175fecacbed4269c2
阅读全文
摘要:问题: 项目可以启动没有问题,访问页面白页加载不到东西 BaseClient.js:23 Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>' 解决办法:https://www.
阅读全文
摘要:1、下载 pip3 install webssh 2、启动webssh服务 # 直接运行wssh,使用默认8888端口 wssh # 通过绑定IP地址和端口启动 wssh --address='192.168.0.123' --port=8888 wssh --address='0.0.0.0' -
阅读全文
摘要:cnpm install -g @tarojs/cli 全局安装完taro之后应该直接就可以使用taro了,但是在docker容器里安装taro之后执行taro bash: taro: command not found # 在网上查分别npm cache verify和cnpm cache ver
阅读全文
摘要:jquery获取同一个属性的多个input值 <input type="text" name="name" id="input_name" placeholder="请输入名称"> <input type="text" name="name" id="input_name" placeholder=
阅读全文
摘要:<select class="form-control" id="businessRootEnvSelect" name="env" multiple> // $("#businessRootEnvSelect option:selected").each(function(){ // packag
阅读全文
摘要:<input type="checkbox" id="boxid" onclick="setAllNo()" />全选/全不选 # 渲染多选数据for (i = 0; i < data.length; i++) { envHtml += '<input type="checkbox" name="e
阅读全文
摘要:<div> <input type="checkbox" id="addChoiceSelect" name="add_choice" onchange="javascript:oBtAddChoice();"> 是否添加姓名 <input type="te
阅读全文
摘要:恢复内容开始 1、首先什么是双向选择器,上图 类似这样的一个可以穿梭相互选择的选择器,实现方法:html+jquery+django django-models.py # 用户组使用了Django自带的group表 from django.contrib.auth.models import Use
阅读全文
摘要:jquery获取checkbox是否被选中 html <div><input type="checkbox" id="is_delete" name="is_delete"> 是否删除</div> <div><input type="checkbox" id="is_time" name="is_t
阅读全文
摘要:html <input type="radio" name="sex" value="man" checked> man <input type="radio" name="sex" value="woman"> woman jquery ("[name='sex']:checked").val()
阅读全文
摘要:获取多选框的值 var packageCodeList=new Array(); $('#server_id:checked').each(function(){ packageCodeList.push($(this).val());//向数组中添加元素 }); console.log(packa
阅读全文
摘要:import re it = re.finditer(r"<url>.*?</url>", '被筛选字符串') # 匹配url标签里的内容 # it = re.finditer(r"<command>.*?</command>", con) # 匹配标签里的内容,有换行符\n导致匹配失败 it2 =
阅读全文
摘要:在我们将较长的执行结果展示到前端页面时可能会较占篇幅,可以设置一个无限滚动效果将其固定显示在一个固定大小的框框,并且执行结果实现实时更新 HTML代码: <div id="post_deploy_result" name="deploy_result" style="height: 150px;ov
阅读全文
摘要:1.安装node wget https://nodejs.org/dist/v10.15.0/node-v10.15.0-linux-x64.tar.xz 2.解压 tar -xf node-v10.15.0-linux-x64.tar.xz 3.配置全局变量 # vim /etc/profile
阅读全文
摘要:<button id="test" name="test_name" value="test_value"></button> 上面是一个在前端页面中展示的一个button,通过点击button获得相应的value $('#test').attr('name') 得到结果 test_name
阅读全文