会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
样子2018
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
52
下一页
2025年4月24日
Js 之点击下拉搜索Ajax-Bootstrap-Select
摘要: 一、效果图 二、文档 https://gitcode.com/gh_mirrors/aj/Ajax-Bootstrap-Select/tree/master 三、示例代码 引入插件js、css <link rel="stylesheet" href="{php echo MODULE_URL}tem
阅读全文
posted @ 2025-04-24 15:03 样子2018
阅读(27)
评论(0)
推荐(0)
2024年11月22日
TP5框架 之多对多关联
摘要: 一、表设计 user表 group表 user_group表 二、模型设计 User模型 <?php namespace app\index\model; class Users extends \think\Model { protected $pk = "id"; protected $auto
阅读全文
posted @ 2024-11-22 09:41 样子2018
阅读(25)
评论(0)
推荐(0)
2024年11月6日
Js 之获取几秒、几分钟、几小时、几天前
摘要: 一、代码 /** * 获取几秒、几分钟、几小时、几天前 * @param time * @returns {string} */ function getDiffTime(time) { var nowTime = parseInt((new Date().getTime()) / 1000); v
阅读全文
posted @ 2024-11-06 10:45 样子2018
阅读(88)
评论(0)
推荐(0)
2024年9月21日
Vue3 之hooks 使用详解教程
摘要: 一、基本使用 <template> <view> {{params}} <button @click="goUrl('/pages/index/index')">跳转</button> </view> </template> <script> import { ref, onMounted } fr
阅读全文
posted @ 2024-09-21 10:59 样子2018
阅读(291)
评论(0)
推荐(0)
Vue3 之ref与reactive的区别
摘要: 在Vue 3中,reactive和ref都用于创建响应式的数据,但它们有一些关键的区别: reactive用于创建响应式的对象,该对象的属性是深度响应式的。 ref用于创建响应式的基本类型数据,比如字符串、数字、布尔值等,它是reactive的简化版本,只提供了基本的响应式能力。 一、ref与rea
阅读全文
posted @ 2024-09-21 10:19 样子2018
阅读(516)
评论(0)
推荐(0)
2024年8月22日
Vue 之混入(mixin)详细介绍
摘要: 混入(mixin)提供了一种非常灵活的方式,来分发 Vue 组件中的可复用功能。一个混入对象可以包含任意组件选项(如data、methods、mounted、filters等等)。 一、注册使用 1、在main.js中全局配置 import mixin from './mixins' Vue.mix
阅读全文
posted @ 2024-08-22 09:58 样子2018
阅读(87)
评论(0)
推荐(0)
Vue 之filter过滤器
摘要: 一、注册过滤器 1、在main.js中配置全局 import { formatTime } from './filter' Vue.filter('formatTime', formatTime); 2、在组件中注册 二、使用 <view class="text-area"> <text class
阅读全文
posted @ 2024-08-22 09:40 样子2018
阅读(67)
评论(0)
推荐(0)
2024年7月27日
PHP 之腾讯云对象存储生成临时地址
摘要: 一、代码示例 /** * 生成cos签名 * @param string $httpURI 你的url地址,如:https://xxxx.com/123/23/test.png * @param string $expires 有效时间 分钟 * @param string $headerList
阅读全文
posted @ 2024-07-27 16:29 样子2018
阅读(87)
评论(0)
推荐(0)
Js 之根据两个经纬度计算距离
摘要: 一、示例 function getDistance(lat1, lng1, lat2, lng2) { let EARTH_RADIUS = 6378.137; // 地球半径 let radLat1 = lat1 * Math.PI / 180.0; //lat1 * Math.PI / 180.
阅读全文
posted @ 2024-07-27 16:17 样子2018
阅读(323)
评论(0)
推荐(0)
Uniapp 之我的手写签名
摘要: 一、效果图 二、代码示例 qianming.js export const qianming = { data() { return { windowWidth: 0, pixelRatio: 0, context: null, points: [], oldPoints: [], qm_width
阅读全文
posted @ 2024-07-27 15:51 样子2018
阅读(480)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
52
下一页
公告