2020-12-25

http://www.bootstrapmb.com/tag/tishi

拉过来一个CheckBox控件(CheckBox1)覆盖在第一列的标题上,文本值:全选
https://www.cnblogs.com/Donnnnnn/p/6003606.html
https://www.cnblogs.com/Donnnnnn/p/6145500.html
https://www.cnblogs.com/savorboard/p/webrtc-rtsp.html
https://github.com/ripienaar/free-for-dev#design-and-ui
https://www.zcool.com.cn/
https://www.huiyi8.com/member/hauth3/index/recharge
http://www.yaruijie.com/dev/ow?bx629056

https://developer.android.google.cn/
https://developers.google.cn/

Prometheus 是一套开源的系统监控报警框架。2016 年,Prometheus 正式加入 Cloud Native Computing Foundation,成为受欢迎度仅次于 Kubernetes 的项目。

https://www.cnblogs.com/Donnnnnn/p/6145500.html
swiper和scroll-view制作tabbar
https://www.cnblogs.com/roucheng/p/DataGridView.html

https://www.cnblogs.com/roucheng/p/csxuchuan.html
毛玻璃
https://www.jq22.com/code3737
https://www.jq22.com/code3736
https://www.runoob.com/jquery/jquery-hide-show.html

https://github.com/devbridge/jQuery-Autocomplete

在web.config中添加如下语句:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN" uiCulture="zh-CN"/>

$("#tools").toggle();
$("#tools").slideToggle("slow");

style=" display:none;"
$("原始的select对象").next().find('.layui-select-title').one('click',function () {
    // select 操作
    ........
    //重新渲染下拉列表
    from.render('select')
}

移动端Click300毫秒点击延迟 解决办法

lvsige 2020-08-05 20:01:03  193  收藏
分类专栏: 移动端 文章标签: js
版权
1. 300ms延迟的产生缘由
移动端浏览器的默认显示宽度是980px(不同机型各异,但相差不大),而不是屏幕的宽度(320px或其他)。为了对早期普通网页更好的体验,iphone设计了双击放大显示的功能–这就是300ms延迟的来源:如果用户一次点击后300ms内没有其他操作,则认为是个单击行为;否则为双击放大行为

2. 解决方法
1.设置不能缩放:user-scalable=no。 不能缩放就不会有双击缩放操作,因此click事件也就没了300ms延迟,这个是Chrome首先在Android中提出的。

2.设置显示宽度:width=device-width。Chrome 开发团队不久前宣布,在 Chrome 32 这一版中,他们将在包含 width=device-width 或者置为比 viewport 值更小的页面上禁用双击缩放。当然,没有双击缩放就没有 300
毫秒点击延迟。

3.IE的指针事件 (Pointer Events):设置touch-action:none,根据规范,touch-action 属性决定 “是否触摸操作会触发用户代理的默认行为。这包括但不限于双指缩放等行为”。
从实际应用的角度来看,touch-action决定了用户在点击了目标元素之后,是否能够进行双指缩放或者双击缩放。因此,这也相当完美地解决了
300 毫秒点击延迟的问题。

鉴于上述的3种解决方案,现在较为通用的meta设置为:

<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
func (c *cAsset) CreatComponent(r *ghttp.Request) { var req *v1.CreateComponentReq if err := r.Parse(&req); err != nil { r.Response.WriteJson(g.Map{ "code": 1, "msg": err.Error(), }) } createRequest := &creativecomponent.CreateRequest{ AdvertiserID: req.AdvertiserID, } res, err := service.Asset().Create(createRequest) if err != nil { r.Response.WriteJson(g.Map{ "code": 2, "msg": err.Error(), }) } r.Response.WriteJson(res) }这段代码中creativecomponent.CreateRequest的过滤条件为type CreateRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // ComponentInfo 组件信息 ComponentInfo *ComponentInfo `json:"component_info,omitempty"` },其中ComponentInfo为type ComponentInfo struct { // ComponentID 组件ID ComponentID model.Uint64 `json:"component_id,omitempty"` // ComponentType 组件类型 ComponentType enum.ComponentType `json:"component_type,omitempty"` // ComponentName 组件名称。长度小于等于20。一个中文长度为2 ComponentName string `json:"component_name,omitempty"` // ComponentData 组件详细信息。不同的component_type对应的不同,具体的结构见创建或新接口定义 ComponentData ComponentData `json:"component_data,omitempty"` // CreateTime 创建时间。格式"2020-12-25 15:12:08" CreateTime string `json:"create_time,omitempty"` // Status 组件审核状态。 Status enum.ComponentStatus `json:"status,omitempty"` }想要把ComponentInfo作为参数放到createRequest中,该怎么做?请详一点
07-20
要将ComponentInfo作为参数放入createRequest中,你可以按照以下步骤进行修改: 首先,你需要在CreateComponentReq结构体中添加一个ComponentInfo字段,用于接收组件信息,如下所示: ```go type CreateComponentReq struct { AdvertiserID uint64 `json:"advertiser_id" v:"required" dc:"广告主id"` ComponentInfo *ComponentInfo `json:"component_info,omitempty"` } ``` 接下来,在CreateRequest结构体中将ComponentInfo字段的类型改为*ComponentInfo,如下所示: ```go type CreateRequest struct { AdvertiserID uint64 `json:"advertiser_id,omitempty"` ComponentInfo *ComponentInfo `json:"component_info,omitempty"` } ``` 然后,你可以根据实际需求创建一个ComponentInfo结构体,并将其作为参数传递给createRequest。以下是示例代码: ```go func (c *cAsset) CreatComponent(r *ghttp.Request) { var req *v1.CreateComponentReq if err := r.Parse(&req); err != nil { r.Response.WriteJson(g.Map{ "code": 1, "msg": err.Error(), }) } // 创建ComponentInfo结构体 componentInfo := &creativecomponent.ComponentInfo{ ComponentID: model.Uint64(123), // 组件ID ComponentType: enum.ComponentType("example"), // 组件类型 ComponentName: "Example Component", // 组件名称 // 具体的组件详细信息,根据实际情况进行填充 ComponentData: creativecomponent.ComponentData{ // ... }, CreateTime: "2022-01-01 10:00:00", // 创建时间 Status: enum.ComponentStatus("pending"), // 组件审核状态 } createRequest := &creativecomponent.CreateRequest{ AdvertiserID: req.AdvertiserID, ComponentInfo: componentInfo, // 将ComponentInfo作为参数赋给createRequest } res, err := service.Asset().Create(createRequest) if err != nil { r.Response.WriteJson(g.Map{ "code": 2, "msg": err.Error(), }) } r.Response.WriteJson(res) } ``` 在上述示例中,我们创建了一个ComponentInfo结构体,并将其作为参数赋给createRequest的ComponentInfo字段。你可以根据实际情况填充ComponentInfo结构体中的字段。请确保在填充ComponentData字段时,根据组件类型进行相应的赋

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值