摘要: 1,创建node框架, 2,在当前项目根目录创建一个js文件,在这个文件中写入连接数据库代码 代码如下: var mongoose=require("mongoose"); mongoose.connect("mongodb://127.0.0.1:27017/student",{ useNewUr 阅读全文
posted @ 2020-07-14 18:11 昵称cart 阅读(343) 评论(0) 推荐(0) 编辑
摘要: setTimeout(function () { document.getElementById("aa").scrollIntoView({ behavior: "smooth", block: "start" })},500) 阅读全文
posted @ 2021-06-29 15:34 昵称cart 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 问题原因: npm代理设置错误,从新设置代理即可。 解决办法: 1 $ npm config set registry "http://registry.npmjs.org/" 阅读全文
posted @ 2021-04-22 15:12 昵称cart 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 字体加粗: box{ font-weight:700;// } 阅读全文
posted @ 2020-10-14 17:03 昵称cart 阅读(68) 评论(0) 推荐(0) 编辑
摘要: display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; 阅读全文
posted @ 2020-08-27 16:59 昵称cart 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 注:滚动条是导致页面切换标签页闪动的原因 html{ /*隐藏滚动条,当IE下溢出,仍然可以滚动*/ -ms-overflow-style:none; /*火狐下隐藏滚动条*/ overflow:-moz-scrollbars-none;} //谷歌适用 .inner-container::-web 阅读全文
posted @ 2020-08-20 19:10 昵称cart 阅读(887) 评论(0) 推荐(0) 编辑
摘要: click:单击事件。 dblclick:双击事件。 mousedown:按下鼠标键时触发。 mouseup:释放按下的鼠标键时触发。 mousemove:鼠标移动事件。 mouseover:移入事件。 mouseout:移出事件。 mouseenter:移入事件。 mouseleave:移出事件。 阅读全文
posted @ 2020-08-20 10:34 昵称cart 阅读(121) 评论(0) 推荐(0) 编辑
摘要: <input v-model="test"> JS: computed: { test: { get () { return this.$store.state.test }, set (val) { this.$store.commit('setTest', val) } } } 阅读全文
posted @ 2020-08-17 16:54 昵称cart 阅读(298) 评论(0) 推荐(0) 编辑
摘要: <el-container> <el-header>公司名-Logo</el-header> <el-container> <!-- 左侧导航 --> <el-aside width="150px">Aside</el-aside> <!-- 右侧内容 --> <el-main> <el-table 阅读全文
posted @ 2020-08-07 19:53 昵称cart 阅读(513) 评论(0) 推荐(0) 编辑
摘要: filters: { filtiem(newval) { var date = new Date(parseInt(newval) * 1000); let create_time = `${date.getFullYear()}/${date.getMonth() + 1}/${date.getD 阅读全文
posted @ 2020-08-07 19:26 昵称cart 阅读(259) 评论(0) 推荐(0) 编辑