vue3入门
摘要:###vue3 ####一、环境 * 需要nodejs环境 * 安装:npm i -g @vue/cli * 查看版本(需要在4.5.0以上):vue -V * 脚手架初始化项目:vue create my-project Please pick a preset:Manually select f
阅读全文
typescript入门
摘要:####typescript入门 #####1、环境 * 需要nodejs环境 * 安装:npm i -g typescript * 查看版本:tsc -V * 手动编译:tsc helloworld.ts #####2、基本数据类型 |名称|类型| | | | |布尔值|boolean| |数字|
阅读全文
springsecurity授权码模式项目实战
摘要:####一、前言 #####1、客户端详情表oauth_client_details client_id:客户端ID resources_ids:可访问的资源服务器ID,不写则不校验 client_secret:客户端密码,此处不能是明文,需要加密 scope:客户端授权范围,不指定默认不校验范围
阅读全文
css-自定义滚动条
摘要:<template> <div style="width: 50%;height: 100%;overflow-y: auto" class="zm-scrollbar"> <div style="height: 6000px"></div> </div> </template> <script>
阅读全文
css-自定义单选框
摘要:<template> <div> <form action="" class="zm-form"> <label><input type="radio" name="radio" value="pm25" checked="checked"><span>PM2.5</span></label> <l
阅读全文
vue-高德根据IP获取定位和根据定位获取天气
摘要:import request from '@/utils/request' import settings from '@/settings' // 高德 export default { // 根据ip获取定位 getPosition(ip, key = settings.amapServiceK
阅读全文
javascript-工具函数
摘要:/** * 解析日期 * @param {(Object|string|number)} time * @param {string} cFormat * @returns {string | null} */ export function parseTime(time, cFormat) { i
阅读全文
vue-关于引入和scope域
摘要:1、vue每执行到一个组件就会在head标签下添加对应组件的script和style标签。 2、在js或vue文件中文件以import 'xx/xx/xx.js'方式引入,该引入的文件会按顺序执行。 3、在js或vue文件中文件以import obj from 'xx/xx/xx.js'方式引入,该
阅读全文
vue-iconfont字体图标
摘要:<template> <div> <i style="font-family: '天气';" v-for="(li,i) in icons" :key="i" v-html="`&#x${li.unicode};`"></i> </div> </template> <script> export d
阅读全文