Javascript 自定义操作功能区Sharepoint

Javascript 自定义操作功能区Sharepoint,javascript,sharepoint-2013,ribbon-control,Javascript,Sharepoint 2013,Ribbon Control,我需要在为Sharepoint库开发的库选项卡下的自定义组中实现多个功能区按钮操作。 我们是否可以添加多个自定义操作scriptlink以使用javascript处理按钮事件 <Groups Id="Custom.Ribbon.Groups"> <Group Id="CustomGroupCommand" Description="Contains 'remove status' items

我需要在为Sharepoint库开发的库选项卡下的自定义组中实现多个功能区按钮操作。 我们是否可以添加多个自定义操作scriptlink以使用javascript处理按钮事件

    <Groups Id="Custom.Ribbon.Groups"> 
    <Group 
    Id="CustomGroupCommand" 
    Description="Contains 'remove status' items" 
    Title="Remove status messages" 
    Sequence="80" 
    Template="Ribbon.Templates.Flexible2"> 
    <Controls Id="Ribbon.custom.Controls"> 
        <Button 
            Id="Getdocument" 
            Command="alert1.Command" 
            Sequence="10" 
            Image16by16="/_layouts/images/warning16by16.gif" 
            Image32by32="/_layouts/images/CRIT_32.GIF" 
            Description="" 
            LabelText="Document Details" 
            TemplateAlias="o1"/> 
        <Button 
            Id="GetUser" 
            Command="alert2.Command" 
            Sequence="20" 
            Image16by16="/_layouts/images/warning16by16.gif" 
            Image32by32="/_layouts/images/CRIT_32.GIF" 
            Description="" 
            LabelText="Getuser" 
            TemplateAlias="o1"/> 
</Controls> 
</Group>
</CommandUIDefinition>          
<CommandUIHandlers> 
    <CommandUIHandler 
        Command="alert1.Command" 
        CommandAction="javascript:GetDocument(); " />           
    <CommandUIHandler 
        Command="alert2.Command"  
        CommandAction="javascript: Getuser(); />
</CommandUIHandlers>        
</CommandUIExtension> 
</CustomAction> 
**<CustomAction 
    Id="Test1.Ribbon" Location="ScriptLink" ScriptSrc="_/path/Getdoc.js"/>
<CustomAction 
    Id="Test2.Ribbon" Location="ScriptLink" ScriptSrc="_/path/Getuser.js"/>** 
</Elements>