![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web前端
Icebreaking丶
HelloWorld
展开
-
php微信H5支付V3版
php微信H5支付V3版原创 2023-10-28 11:26:07 · 209 阅读 · 0 评论 -
新版微信小程序获取用户手机号
新版微信小程序获取用户手机号的两种方式原创 2023-08-26 13:47:19 · 961 阅读 · 0 评论 -
封装一个vue倒计时的组件
在上述示例中,Countdown 组件接受一个 duration 属性,表示倒计时的总时长(以秒为单位)。组件在 mounted 钩子函数中启动倒计时,并使用 setInterval 每秒更新 remainingTime 的值,直到倒计时结束。在组件销毁之前使用 beforeDestroy 钩子函数清除 intervalId。在父组件中使用 即可创建一个倒计时为 60 秒的倒计时组件。原创 2023-06-19 10:05:43 · 407 阅读 · 0 评论 -
php实现微信jsapi支付(v3版本)
php微信jsapi支付 v3版原创 2022-11-09 11:18:59 · 3003 阅读 · 2 评论 -
Uniapp vue 实现简单的倒计时功能
前端原创 2022-09-19 15:40:21 · 741 阅读 · 0 评论 -
fastadmin自定义页面,点击上传按钮,无法触发上传的事件解决
使用官方的命令行生成curd表单可正常使用上传组件,但是自定义页面没有办法调起上传事件,本文讲解怎么解决此问题fastadmin一个php控制器对应一个js文件php方法 //对比订单 public function compare_order() { return $this->view->fetch(); }html<form id="first-form" role="form" data-toggle="validator"原创 2022-02-26 16:02:06 · 3702 阅读 · 0 评论 -
fastadmin对表格字段进行判断进行格式化
{field: 'remark_dict', title: __('Remark_dict'), operate: 'false',formatter: function (value,row,index) { //return '总额:'+ row.remark_dict +'<br/>' //业务逻辑 }},原创 2022-01-26 14:12:50 · 1707 阅读 · 0 评论 -
php允许多个域名跨域问题
php开发中跨域报错问题The value of the ‘Access-Control-Allow-Credentials’ header in the response is ‘’ which must be ‘true’ when the request’s credentials mode is ‘include’. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withC原创 2021-08-05 15:09:47 · 578 阅读 · 1 评论 -
H5中利用canvas截取裁剪图片并保存为base64
<!DOCTYPE html><html><head> <title></title></head><body> <canvas width="720px" height="1080px" id="canvas"></canvas> <img src="" id="img"></body><script type="text/javascript"原创 2021-08-03 16:38:24 · 1354 阅读 · 0 评论 -
Use // eslint-disable-next-line to ignore the next line
vue项目中报此错误检测是否符合语法规范解决只需将config/index.js修改 useEslint: false原创 2021-06-16 16:53:06 · 356 阅读 · 0 评论 -
php使用swoole实现websocket通信
下载安装完swoole,开启websocket服务器php ws_server.php服务端codeclass WebSocketTest{ public $server; public function __construct() { $this->server = new Swoole\WebSocket\Server("0.0.0.0", 9501); $this->server->on('open', functi原创 2020-11-19 20:23:46 · 710 阅读 · 0 评论 -
vue前后分离公众号调起微信支付
前几天做微信公众号 这次用的是vue前端 php后端提供接口微信支付不管是mvc还是 前后分离思想都是一样的在mvc中 提前要把微信参数赋值在view模板中 支付调起时携带view模板页面参数去微信请求在前后分离中 要设置一个监听事件 先触发事件请求微信参数到本页面 然后另一个方法携带请求好的参数去微信请求以下是vue参考代码 希望有所帮助 commitClick () { if (this.radio == 2) { this.$layerText('微信公众号原创 2020-07-09 10:40:31 · 518 阅读 · 0 评论 -
CSS3之background背景平铺范围
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-U...原创 2019-06-30 10:23:25 · 401 阅读 · 0 评论 -
H5 文字水平竖直居中 DIV水平居中
实现H5中的文字水平竖直居中 div水平居中<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> &...原创 2019-06-30 10:23:40 · 1628 阅读 · 0 评论 -
HTML两种盒模型
盒模型1<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv...原创 2019-06-30 10:23:07 · 147 阅读 · 0 评论 -
Javascript中的Window与document
Window – 代表浏览器中一个打开的窗口:对象属性 window //窗口自身 window.self //引用本窗户window=window.selfwindow.name //为窗口命名 window.defaultStatus //设定窗户状态栏信息 window.location //URL地址,配备布置这个属性可以打开新的页面对象方法 window.ale...原创 2019-01-30 15:27:08 · 324 阅读 · 0 评论