fancybox-3 - Fancybox 3 ajax 类型自动追加查询字符串 fancybox=true 到实际 url
问题描述
有没有办法避免 Fancybox 3 自动附加查询字符串“fancybox=true”?
谢谢
解决方案
您可以使用一个选项ajax
来自定义您的 ajax 请求,这是默认值:
ajax: {
// Object containing settings for ajax request
settings: {
// This helps to indicate that request comes from the modal
// Feel free to change naming
data: {
fancybox: true
}
}
}
推荐阅读
- ios - 加载群组频道 Sendbird 时加载频道错误 800101
- java - 创建 Jar 文件后如何在我的应用中显示图像?
- wordpress - 更改 WooCommerce 类别分页 slug/永久链接
- python-3.x - 带过滤器的列中的最大值
- javascript - 如何播放对话流的输出音频(int数组)
- php - EAV(实体-属性-值)数据建模/自定义数据库字段
- mysql - Mysql - 按两列排序,但有一个条件
- ruby - 如何在循环中放回输出令牌 - Ruby Pagination?
- node.js - 如何在没有逗号的情况下将缓冲区写入文件?(节点)
- c# - 反射:检查 Type 是否满足 new() 约束