$.toast延迟时间,控制时间
$(document).on("click", "#text", function() {
$.toast.prototype.defaults.duration=1000;//1秒
$.toast("回答错误!正确答案是C",'text');
});...
php判断session是否为空是否存在isset(session('k'))提示错误
php判断session是否为空是否存在isset(session('k'))提示错误:
Cannot use isset() on the result of an expression (you can use "null !== expression" instead)
isset函数是检测变量是否设置。
格式:bo...
thinkphp5的avg求平均数,得到的值有四个小数点,我想保留2位
thinkphp5的avg求平均数,得到的值有四个小数点,我想保留2位
视图中输出
{$vo.avgScore}
改成
{$vo.avgScore|number_format=2}
number_format函数介绍
https://taotaoit.com/article/details/1511.h...
bootstrap5 .float-start .float-end .float-none和bootstrap4 .float-left .float-right
css样式
bootstrap5
.float-start{float:left!important}
.float-end{float:right!important}
.float-none{float:none!important}
bootstrap4
.float-left{float:left!imp...
bootstrap5 .order-first .order-0 .order-1 .order-2 .order-last自定义排序
Bootstrap仅提供选项将一个物件排在第一个或最后一个,由于order只能使用从0到5的整数值,任何额外值则需要自定义的CSS。
先看官方的css样式
.order-first{order:-1!important}
.order-0{order:0!important}
.order-1{order:1!importa...
bootstrap5 .mt-auto .mb-auto .my-auto
css样式
.mt-auto{margin-top:auto!important}
.mb-auto{margin-bottom:auto!important}
.my-auto{margin-top:auto!important;margin-bottom:auto!important}
bootstrap5 .me-auto .ms-auto .mx-auto和bootstrap4 .ml-auto .mr-auto
bootstrap5 .me-auto .ms-auto是什么意思?
先看css样式
bootstrap5
.ms-auto元素居右
.me-auto元素居左
.ms-auto{margin-left:auto!important}
.me-auto{margin-right:auto!important}
.m...
bootstrap5 .bg-body和bg-white
bootstrap5里面.bg-body和bg-white设置的背景颜色都是一样的,不知道为啥要设置两个
.bg-body{background-color:#fff!important}
.bg-white{background-color:#fff!important}
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'aaaaaaaaaa_01' for key 'privilegeCode'
thinkphp5.1添加数据到数据库的时候提示:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'aaaaaaaaaa_01' for key 'privilegeCode'
原因是数据库中字段privilegeCode...
js 如何实现加法?
js中加法运算有:
1、输入的是字符串, 字符串的连接符也是加号, 最后就按字符串运算了,所以先转换成数值型。
整数:c=parseInt(a)+parseInt(b)
浮点数:c =parseFloat(a)+parseFloat(b)
2、evel:可计算某个字符串,并执行其中的的 JavaScript 代码。
evel(a...
wordpress错误 Uncaught Error: Function name must be a string in /home/www/wwwroot/www.cqhqysm.com/wwwroot/wp-content/themes/PC050/admin/metaw.class.php:81
<b>Fatal error</b>: Uncaught Error: Function name must be a string in /home/www/wwwroot/www.cqhqysm.com/wwwroot/wp-content/themes/PC050/admin/metaw.clas...
array_rand(): Second argument has to be between 1 and the number of elements in the array
数组中随机获取几个参数,报错:
array_rand(): Second argument has to be between 1 and the number of elements in the array
原因是,设置的随机数大于数组内元素个数,设置小点就可以了。
// 获取试题列表
$rs_pr...
无法获取用户身份 登录的微信号未绑定为公众号的网页开发者
无法获取用户身份 登录的微信号未绑定为公众号的网页开发者,无法使用Oauth授权登录获取用户身份,请查看文档并完成绑定
绑定为公众号网页开发者的流程如下
使用 appid 对应的公众号登录公众号管理后台
启用开发者中心,在 开发者工具 —— web 开发者工具 页面,向开发者微信号发送绑定邀请。绑定页面如下图所示:
...
微信公众平台,微信网页授权,redirect_uri参数错误,解决方法!
刚才在做微信网页授权的时候,发生一个错误!!!微信网页授权redirect_uri 参数错误!
遇到问题,第一时间应该做的就是查看官网微信公众平台的技术文档。
微信网页授权
如果用户在微信客户端中访问第三方网页,公众号可以通过微信网页授权机制,来获取用户基本信息,进而实现业务逻辑。
关于网页授权回调域名的说明
1、...
flex布局一行三个,显示多行
效果
代码
<div class="manage-list">
<div class="manage-li">
<div class="manage-li-img"></div>
</div>
<di...
关于本站
“最难不过坚持”
本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作
有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339
2699
39
分类目录
最新评论
- https://jueru.net/
-
- :weixiao:
-
- :shuijiao: :weiqu: :zhenbang: :leng:
-
- :yiwen: :yiwen: :yiwen: :yiwen:
-
- 这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
-
文章标签更多