跳转到主要内容

主页内容

2024年07月02日

下一代Ajax技术——Fetch API

1、什么是Fetch?(1)、Fetch被称之为下一代Ajax技术,内部采用promise方式来处理数据。(2)、API语法简洁明了,比XMLHttpRequest更加简单易用。(3)、采用了模块化设计,API分散...

2024年07月02日

Drupal中的常用验证

1、验证是否是合法的邮箱地址。use Drupal\Component\Utility\EmailValidatorInterface; //获取 EmailValidatorInterface 的实例,然后,使用...

2024年06月27日

跨域情况下实现iframe的高度根据嵌套页面的高度自适应

问题:a.com下有一个页面,使用iframe包含了b.com下的一个页面test.html,如何让a.com下的页面的iframe高度动态根据test.html页面的高度自适应?实现步骤:(1)、允许跨域通信:a...

2024年06月18日

Drupal报错The following theme is marked as installed in the...

已经在本地升级了Drupal9.5,在运行update.php更新数据库的时候报如下错误:The following theme is marked as installed in the core.extensi...

2024年06月17日

Drupal其他版本升级到Drupal9.5

运行:composer require 'drupal/core-recommended:^9.5' --update-with-dependencies ...

2024年06月14日

SimpleSAMLphp 报错Fatal exception with simplesamlphp 2.2.2: non-existent service "serializer.normalizer.object"

问题位置:https://www.drupal.org/project/drupalauth4ssp/issues/3453721 ...

2024年06月07日

Drupal单点登录SAML SSO(作为服务提供者)

文档:https://simplesamlphp.org/docs/stable/simplesamlphp-sp ...

2024年06月04日

CSS预处理器SASS

1、SASS的两种文件后缀(1)sass: sass结尾以缩进替代{}表示层级结构,语句后面不用编写分号。(2)scss: scss以{}表示层级结构,语句后面需要写分号。企业开发中推荐使用.scss结尾。2、SA...

2024年06月03日

WordPress中用户相关操作

1、删除一个用户require_once( ABSPATH . 'wp-admin/includes/user.php' ); $status = wp_delete_user( $user->ID );//...