- 2022/12/08
- |
- 知识
- |
- Views: 276
- |
- 0 Replies
layui提供的固定块功能,语法:util.fixbar(options),默认只有2个图标,如果需要2个以上的图标,可以自己去写式样代码<style>
.custom-footer {
position: fixed;
right: 15px;
bottom: 15px;
z-index: 999999;
}
.custom-footer li {
width: 50px;
height: 50px;
line-height: 50px;
margin-bottom: 1px;
text-align: ...
- 2022/11/14
- |
- 知识
- |
- Views: 407
- |
- 0 Replies
success: function(res) {
var iframe = $(res).find('iframe');;
var Height=iframe[0].contentDocument.body.offsetHeight+50
iframe.css('height', Height);
$(res).css('top', (window.innerHeight - Height - 100) / 2);
...
- 2021/11/17
- |
- 知识
- |
- Views: 2,138
- |
- 0 Replies
根据字段A出现的次数进行排序select * from table a left join
(select count(字段A) as cs,字段A from table WHERE userid = 11 group by 字段A ) b
on a.字段A=b.字段A WHERE userid = 11 order by b.cs desc
- 2021/11/16
- |
- 知识
- |
- Views: 2,140
- |
- 0 Replies
点击<span onclick="msg(<?=$id;?>)" class="layui-text">弹出层<div style="display:none" id='div<?=$id;?>'>JS代码function msg(wrapperId) {
var $ = layui.$;
var $wrapper = $('#div' +wrapperId+'');
layui.use('layer', function(){
var layer = layui...
- 2021/04/15
- |
- 知识
- |
- Views: 2,812
- |
- 0 Replies
A和B两个站点,全部使用微信扫码登录,返回A站点的URL可以将登陆信息写进B站点数据库,具体有登陆unionid和昵称等信息,加上登陆时间,临时生成的密钥写入成功后跳转B站点URL,参数带上密钥在B站点与数据库信息验证,如果在允许时间内(如半分钟或1分钟),则验证通过,写session,否则需重新授权登陆
- 1
- 2
- »