开发者

base_url in js file

开发者 https://www.devze.com 2023-02-13 06:18 出处:网络
how we can p开发者_StackOverflow中文版rint base_url in js file (in drupal)?pleaseDrupal 7 Drupal.settings.basePath

how we can p开发者_StackOverflow中文版rint base_url in js file (in drupal)?please


Drupal 7

Drupal.settings.basePath

Drupal 8

drupalSettings.path.baseUrl


You can use $base_path. See en example on The Drupal JavaScript API under the "Drupal.settings" section.

0

精彩评论

暂无评论...
验证码 换一张
取 消