ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Class **Phalcon\Assets\Resource\Js**[](# "永久链接至标题") *extends* class [*Phalcon\Assets\Resource*](#) Represents Javascript resources ### Methods[](# "永久链接至标题") public **__construct** (*string* $path, [*boolean* $local], [*boolean* $filter], [*array* $attributes]) public **getType** () inherited from Phalcon\Assets\Resource ... public **getPath** () inherited from Phalcon\Assets\Resource ... public **getLocal** () inherited from Phalcon\Assets\Resource ... public **getFilter** () inherited from Phalcon\Assets\Resource ... public **getAttributes** () inherited from Phalcon\Assets\Resource ... public **getSourcePath** () inherited from Phalcon\Assets\Resource ... public **getTargetPath** () inherited from Phalcon\Assets\Resource ... public **getTargetUri** () inherited from Phalcon\Assets\Resource ... public **setType** (*unknown* $type) inherited from Phalcon\Assets\Resource Sets the resource's type public **setPath** (*unknown* $path) inherited from Phalcon\Assets\Resource Sets the resource's path public **setLocal** (*unknown* $local) inherited from Phalcon\Assets\Resource Sets if the resource is local or external public **setFilter** (*unknown* $filter) inherited from Phalcon\Assets\Resource Sets if the resource must be filtered or not public **setAttributes** (*unknown* $attributes) inherited from Phalcon\Assets\Resource Sets extra HTML attributes public **setTargetUri** (*unknown* $targetUri) inherited from Phalcon\Assets\Resource Sets a target uri for the generated HTML public **setSourcePath** (*unknown* $sourcePath) inherited from Phalcon\Assets\Resource Sets the resource's source path public **setTargetPath** (*unknown* $targetPath) inherited from Phalcon\Assets\Resource Sets the resource's target path public **getContent** ([*unknown* $basePath]) inherited from Phalcon\Assets\Resource Returns the content of the resource as an string Optionally a base path where the resource is located can be set public **getRealTargetUri** () inherited from Phalcon\Assets\Resource Returns the real target uri for the generated HTML public **getRealSourcePath** ([*unknown* $basePath]) inherited from Phalcon\Assets\Resource Returns the complete location where the resource is located public **getRealTargetPath** ([*unknown* $basePath]) inherited from Phalcon\Assets\Resource Returns the complete location where the resource must be written | - [索引](# "总目录") - [下一页](# "Abstract class Phalcon\Cache\Backend") | - [上一页](# "Class Phalcon\Assets\Resource\Css") | - [API Indice](#) »