// Add custom JS file to ownCloud \OC_Util::addScript('my-custom-script', 'my-custom.js');
// Add jQuery to ownCloud \OC_Util::addScript('jquery', 'my-custom.js', array('src' => 'https://code.jquery.com/jquery-3.6.0.min.js'));In the example above, we are registering a JavaScript library, jQuery, by giving it the name "jquery". We are also passing an array of options to configure the script. From the above example, we can determine that this package library is a part of the ownCloud App Framework.