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.
加载中,请稍侯......
精彩评论