开发者

base_url in js file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜