
前端问题
杨咩咩yang
.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vue问题:TypeScript intellisense is disabled on template. To enable, configure `“jsx“:
TypeScript intellisense is disabled on template. To enable, configure `"jsx": "preserve"` in the `"compilerOptions"` property of tsconfig or jsconfig. To disable this prompt instead, configure `"experimentalDisableTemplateSupport": true` in `"vueCompilerOp原创 2022-08-16 12:23:08 · 5580 阅读 · 2 评论 -
淘宝npm镜像搬家换源
查看当前镜像:npm config get registry设置新地址:npm config set registry https://register.npmmirror.com原创 2022-05-30 10:49:22 · 434 阅读 · 0 评论 -
node配置淘宝报错
使用set配置原创 2021-11-15 22:35:25 · 150 阅读 · 0 评论 -
vue子组件报错render: "TypeError: Cannot read property 'name' of undefined" found in
报错信息:render: "TypeError: Cannot read property 'name' of undefined" found in代码:<div class="user-role text-center text-muted">{{ user.role.name }}</div>原因:数据传输是通过store,界面加载子组件时store还...原创 2020-04-26 18:31:48 · 4083 阅读 · 0 评论 -
每次添加完依赖后vue项目启动有总报错
vue项目刚从git拉取下来后,执行 cnpm install然后执行 npm run dev 来启动项目对项目通过 cnpm install xx --save 添加了依赖后,需要执行 cnpm install重新编译,然后 npm run dev启动项目...原创 2020-04-22 16:18:30 · 732 阅读 · 3 评论 -
[Intervention] Unable to preventDefault inside passive event listener due to target being ...
移动端界面滚动时报错 :[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080解决方案: 定义全局样式:...原创 2020-04-18 15:26:53 · 1070 阅读 · 0 评论 -
Uncaught (in promise) cancel Promise.then (async)
vue element项目中,提示框点击取消报错:Uncaught (in promise) cancel Promise.then (async)解决方案: 加.catch(() => {})this.$confirm(this.$t('message.delete'), this.$t('message.warning'), { confirmButtonTex...原创 2020-04-09 19:39:31 · 3148 阅读 · 0 评论 -
div宽高按照特定比例显示内容padding-bottom
使div的宽和高始终按照一定比例显示,定义好宽度,高度为0,然后使用padding-bottom Html内容: <div class="a"></div> style样式内容: .a{ overflow: hidden width: 100% height: 0 padding-bottom: 3...原创 2020-03-06 00:28:54 · 631 阅读 · 0 评论 -
style css 里使用import和自定义的目录
import前面加 @ 符号目录关键字前加 ~ 符号例如:<style lang="stylus" scoped> @import '~styles/varibless.styl'</style>注意:以上代码中自定义了styles牡蛎,目录定义为:vue项目中,在build的webpack.base.cong.js中alias: { '...原创 2020-03-04 19:23:34 · 1742 阅读 · 0 评论 -
Require self-closing on Vue.js custom components
告警信息:Require self-closing on Vue.js custom components (<el-input>) (vue/html-self-closing错误代码:<el-input v-if="scope.row.isSet" v-model="scope.row.type"></el-input>正确代码&l...原创 2020-03-04 14:55:13 · 11341 阅读 · 1 评论 -
delete方法报错405
错误代码:export function deleteConfig(params) { return request({ url: '/api/setting-infos', method: 'delete', params })}正确代码:export function deleteConfig(params) { return req...原创 2020-03-02 17:27:59 · 2513 阅读 · 0 评论 -
JFreeChart用法示例
JFreeChart 用法与示例1.创建JFreeChart步骤大致为以下三步:(1).创建数据集对象DefaultCategoryDatasetdataSet=newDefaultCategoryDataset();(2).创建JFreeChart对象//通过ChartFactory创建JFreeChartJFreeChartcha...转载 2019-02-28 10:36:13 · 375 阅读 · 0 评论 -
ui的li点击后变色
在js中写:$("ul li").addClass("blue").siblings().removeClass("blue");在css加:.blue{ background-color: #4680ff;}原创 2018-07-20 13:41:44 · 3883 阅读 · 0 评论 -
DataTables warning: table id=dbtableColumn_list - Cannot reinitialise
在加载dataTable之前先运行下面这条语句:$("#dbtableColumn_list").dataTable().fnDestroy();原创 2018-07-20 13:39:59 · 536 阅读 · 0 评论 -
js截取字符串后半段
function getCaption(obj){ var index=obj.lastIndexOf("|");//若不能识别,前面加转义字符 \ obj=obj.substring(index+1,obj.length);// console.log(obj); return obj;}var str=" aaaaa|ccccc";getCapt...原创 2018-07-23 16:05:38 · 1521 阅读 · 0 评论 -
js获取下拉框select的值
<select id=""><option>...</option></select>第一种方式$('#testSelect option:selected').text();//选中的文本$('#testSelect option:selected') .val();//选中的value值$("#testSelect ").get(0...原创 2018-07-17 09:52:32 · 4450 阅读 · 4 评论 -
js控制默认选择下拉框第一个
$("#publishDataSource option:first").prop("selected",'selected');原创 2018-05-31 16:23:09 · 8299 阅读 · 0 评论 -
Chrome 浏览器自动填充导致黄色背景
按照以下倾向给input增加样式一般的:input:-webkit-autofill {background-color: #FAFFBD;background-image: none;color: #000;}特殊的:1.纯色背景input:-webkit-autofill {-webkit-box-shadow: 0 0 0px 1000px white inset;border: 1px s...原创 2018-05-15 10:07:48 · 848 阅读 · 0 评论 -
chrome浏览器自动填充用户名和密码
<form> <div class="form-group" id="addUser"> <label for="lastname" class="col-sm-3 control-label">用户名<font color="red">*&原创 2018-05-15 10:01:58 · 9358 阅读 · 0 评论