本文整理汇总了PHP中JS::include_library方法的典型用法代码示例。如果您正苦于以下问题:PHP JS::include_library方法的具体用法?PHP JS::include_library怎么用?PHP JS::include_library使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JS
的用法示例。
在下文中一共展示了JS::include_library方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
*
* @uses /assets/js/iphone/safariurlbar.js
* @uses /assets/js/iphone/orientation.js
*/
if (User_Agent::is_iphone_os()) {
JS::include_library('safariurlbar', 'iphone');
JS::include_library('orientation', 'iphone');
}
/**
* Include preview_util as part of js.php and import the desktop preview.
*
* @uses /assets/js/desktop/preview_util.php
* @uses /assets/js/desktop/preview.js [import]
*/
if (User_Agent::is_preview()) {
JS::include_library('preview_util', 'desktop', 'php');
JS::import_library('preview', 'desktop');
}
/**
* Load all standard (and touch_lib for compat) libraries specified in the URI.
*/
if (User_Agent::is_standard() && (isset($_GET['standard_libs']) || isset($_GET['touch_libs']))) {
$loadarr = isset($_GET['standard_libs']) ? explode(' ', $_GET['standard_libs']) : array();
if (isset($_GET['touch_libs'])) {
$loadarr = array_merge(explode(' ', $_GET['touch_libs']), $loadarr);
}
foreach ($loadarr as $load) {
JS::import_library($load, 'standard');
}
}
/**