[table=90%] [tr][td]选项[/td][td] 作用[/td][/tr] [tr][td] id[/td][td] 引用js文件的完全url[/td][/tr] [tr][td] enabled[/td][td] Can be set to True or False to enable or disable a script.[/td][/tr] [tr][td] expression[/td][td] Can be set to a TALES expression that must evaluate to true for the script to be enabled.[/td][/tr] [tr][td] authenticated[/td][td] Can be set to True to restrict the script to logged-in users only[/td][/tr] [tr][td] compression[/td][td] Can be set to none, safe, or full to enable on-the-fly compression of JavaScript files[/td][/tr] [tr][td] inline[/td][td] Can be set to True for the script to be rendered inline in the page instead of fetched as a separate script.[/td][/tr] [tr][td] cacheable[/td][td] Can be set to True or False to determine whether this script can be cached in the browser.[/td][/tr] [tr][td] cookable[/td][td] Can be set to True or False to enable or disable resource merging for this resource.[/td][/tr] [tr][td] insert-after and insertbefore[/td][td] Can be used to give the ID of a script that this script should be inserted before or after, respectively.[/td][/tr] [tr][td] insert-top[/td][td] Can be used to insert a script at the top of the list.[/td][/tr] [tr][td] remove[/td][td] Can be set to True to remove a script installed by a previous profile.[/td][/tr] [/table]上表为js注册语法,css基本类似。 css注册样例: 在包的profiles目录加一个名为cssregistry.xml文件,内容如下: