RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-288184

bad code's questions

Martin Hope
bad code
Asked: 2020-11-06 07:11:10 +0000 UTC

在 iframe 内部单击时,您需要更改主文档

  • 1

在按钮内部单击时iframe,您需要将类添加到body主文档。iframe 和父文件会在不同的域上怎么办?甚至可能吗?

我在聊天中看到了这个实现https://chatra.io/ru/ 我翻遍了代码,但我不明白这一切对他们来说是如何工作的

javascript
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-07-31 03:43:02 +0000 UTC

如何才能使输入中仅输入范围内的数字?

  • 0

在此处输入图像描述

这些是 3 个输入,即月份和年份

   <input type="text" placeholder="dd" name="day" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');" class="day" >

我发现此代码不允许您输入除数字以外的任何内容。但是如何添加范围?也就是说,您需要这样做,以免输入大于 30、12、2009 的数字

javascript
  • 2 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-07-29 02:37:57 +0000 UTC

如何在 category_list.tpl opencart 2.1.0.2 中显示类别图像?

  • 1

在 category.php 控制器的第 189 行,这段代码

$category_total = $this->model_catalog_category->getTotalCategories();

$results = $this->model_catalog_category->getCategories($filter_data);

foreach ($results as $result) {
    $data['categories'][] = array(
        'category_id' => $result['category_id'],
        'name'        => $result['name'],
        'sort_order'  => $result['sort_order'],
        'edit'        => $this->url->link('catalog/category/edit', 'token=' . $this->session->data['token'] . '&category_id=' . $result['category_id'] . $url, 'SSL'),
        'delete'      => $this->url->link('catalog/category/delete', 'token=' . $this->session->data['token'] . '&category_id=' . $result['category_id'] . $url, 'SSL')
    );
}

如果添加到数组

'image' => $result['image'],

它显示空虚,尽管在其他模板中,主要模板的图像是以相同的方式获得的。如何在管理面板中获取 category_list.tpl 模板的图像?

php
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-07-12 15:49:09 +0000 UTC

如何编辑 wordpress 通知模板?(不是 woocommerce)

  • 0

在此处输入图像描述

这是一个消息的例子。您需要添加换行符并删除不必要的链接,例如垃圾邮件中的批准等。

是否有可能做到这一点?

wordpress
  • 2 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-04-02 16:30:23 +0000 UTC

是否可以在css中使不同方向的边框弯曲?

  • 1

在此处输入图像描述

左边弯曲,右边缩回,用css能做到吗?

css
  • 2 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-03-03 21:56:06 +0000 UTC

是否有可能发现链接是视频?

  • 1

该脚本接收其中可能存在链接的文本。如果是常规链接,则无需执行任何操作,但如果链接指向视频(YouTube、vk、twiter 等),则需要将链接包含在iframe Using php 中,您可以识别该链接将包含视频????

php
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-01-21 03:39:34 +0000 UTC

如何查看订单状态更改的日期?woocommerce

  • 0

在管理面板中,我们更改状态并在某个用户的订单页面上显示有关订单的信息,如屏幕截图所示 在此处输入图像描述

这个日期怎么弄?? $order = wc_get_order($customer_order);此属性没有状态更改日期。有一个最后修改日期和一个创建日期,但这没有意义。

$notes = $order->get_customer_order_notes() 
wordpress
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-12-09 20:53:50 +0000 UTC

投资地点和储蓄柜台

  • 0

假设用户选择了一个关税,并且他每天都会收到一定比例的这个金额。您的个人帐户中有某种计数器,可以在线显示这些百分比是如何下降的。(没有持续的页面更新)

这个怎么运作??每秒更新数据库,在我看来服务器上的负载会太大

php
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-11-22 20:31:58 +0000 UTC

Linux 设置

  • 1

在此处输入图像描述

该文件夹plugins有一个所有者/组 0 0
在其他文件上 1001 1001
因此,我无法通过 FTP 编辑任何内容
如何将 1001 更改为plugins,这是什么意思?

linux
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-11-16 19:53:03 +0000 UTC

wodpress 图像库和 polylang 插件

  • 0

安装了polylang插件,图片加载英文,如果切换到土耳其,图片库是空的。如何使图片库中的土耳其语显示与英语相同的图片?

wordpress
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-11-14 08:59:10 +0000 UTC

wordpress上的站点100%加载服务器的CPU

  • 0

添加帖子或编辑时,负载会跳转到 100%。会是什么呢?

在插件中,安装了 Acf、polylang、联系表、all in one seo、post duplicator。

它还会引发错误:

“连接丢失。在您重新连接之前,保存已被禁用。”

wordpress
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-11-14 08:52:20 +0000 UTC

如何从服务器快速下载大量数据 [关闭]

  • 0
关闭。这个问题不可能给出客观的答案。目前不接受回复。

你想改进这个问题吗? 重新构建问题,以便可以根据事实和引用来回答。

3年前关闭。

改进问题

尝试过的 filezilla 和 lftp 需要更快的东西。下载 200 mb 3 小时 真的不想要

ftp
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-11-12 02:54:46 +0000 UTC

如何从 jquery 中删除我不使用的代码?[关闭]

  • 0
关闭。这个问题需要澄清或补充细节。目前不接受回复。

你想改进这个问题吗?通过编辑此帖子添加更多详细信息并澄清问题。

3年前关闭。

改进问题

如何从 jquery 中删除我不使用的代码?或使用的其他库中的代码

jquery
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-10-25 02:03:55 +0000 UTC

如何剪切多行文本以结束

  • 0

在此处输入图像描述

.description {
	border-top: 1px solid #fff;
	padding: 25px 10px;
	margin-top: 5px;
	height: 135px;
  width: 100px;
	position: relative;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
<div class="description"><a href="https://allescortsankara.com/girl/vera/" title="Vera" data-wpel-link="internal"></a><a href="/">test test testes tsets test test testes tsets test test testes tsets test test testes tsetstest test testes tsets test test testes tsets  test test testes tsetstest test testes tsets .</div>

它应该可以在 Chrome、Opera、Google 浏览器中运行。

text-overflow: ellipsis;

仅适用于铬。在其他浏览器中不起作用。修剪后,此文本应保留在代码中。

jquery
  • 2 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-10-13 23:08:41 +0000 UTC

是否可以在一个管理员下链接不同的 wordpress 域?

  • 0

一个管理面板位于 3 个站点上。您可以在其中的域之间切换。每个域都有自己的内容

wordpress
  • 2 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-09-18 01:40:03 +0000 UTC

如何重定向整个网站和内部页面?

  • 0

RewriteCond %{HTTP_HOST} ^(www\.)?old.com$ [NC]
RewriteCond %{REQUEST_URI} !^(/wp-admin|.*wp-login\.php.*|/robots\.txt|/sitemap.xml|/googlsda1c.html|/wp-content/plugins/all-in-one-seo-pack/sitemap.xsl) [NC]

RewriteRule ^(.*)$ https://new.com/$1 [R=301,L]

主要重定向,但如果您访问 old.com/ru/,那么我们会看到所有内容。如何进行完全重定向,以便在此域中没有打开任何内容

.htaccess
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-09-17 18:23:10 +0000 UTC

如何找出哪个变量是在另一个之后创建的?

  • 1

if(isset($catalog_filter_array['category'])) {
    $category_term = get_term_by('slug', $catalog_filter_array['category'], 'girls');
    $term = $category_term;

}
if(isset($catalog_filter_array['service'])) {
    $service_term = get_term_by('slug', $catalog_filter_array['service'], 'services');

    $term = $service_term;
}
if(isset($catalog_filter_array['city'])) {
    $city_term = get_term_by('slug', $catalog_filter_array['city'], 'city');

    $term = $city_term;
}

类似这段代码的东西。如果所有 3 个条件都为真,则应该只有 1 个变量术语,那么只有最后一个 $term 将在那里,但不是它最后创建的事实。有没有办法检查最后创建的更改?

php
  • 2 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-09-15 02:23:34 +0000 UTC

如何链接 2 个表用户列表和视频列表

  • -1

在一个表中有一个用户列表(字段:id、登录名、密码、权限),第二个是一个包含视频的表。也就是说,将有 10 个视频,并为不同的用户显示不同的视频。可能是 1 个视频,也可能是全部 10 个。管理员还应该能够添加新视频并指定要观看的视频。谁能想出主意?然后什么都没有进入我的脑海

php
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-09-14 18:48:02 +0000 UTC

如何使视频无法从网站下载?

  • 1

如何使视频无法从网站下载?

html
  • 1 个回答
  • 10 Views
Martin Hope
bad code
Asked: 2020-09-08 23:29:09 +0000 UTC

显示建议中的选项卡关闭事件

  • -2

  window.onbeforeunload = confirmExit;
    function confirmExit()
    {
        return "You have attempted to leave this page.  If you have made any changes to the fields without clicking the Save button, your changes will be lost.  Are you sure you want to exit this page?";
    }

我试过了,但它甚至没有用。关闭页面时如何进行等待并打开某种优惠?(不是警报,而是html中的消息)

jquery
  • 2 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5