0

理由がわかりませんでしたが、SharePoint の ms プロジェクトからガント チャートを作成し、多くのサブタスクを作成しました。

残念ながら、ガント チャートの上に置いたスクリプトは機能せず、何も生成されません...

私はすべてのタイプのリンクを試しましたが、何も機能しません...問題を理解できませんでした..ここで説明されていることをそのコードで試しました: しかし、何も機能しませんここに画像の説明を入力してください

<script
      src="https://code.jquery.com/jquery-3.2.1.min.js"
      integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
      crossorigin="anonymous"></script>

<script>
jQuery(document).ready(function(){
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', run);
});

function run(){
    jQuery('div[class="ms-vb  itx"]').find('span[style]').each(function(){
        if(jQuery(this).css('margin-left')!="0px"){
            jQuery(this).parent().parent().parent().hide();
        }
    });
}
</script>

ありがとう

4

2 に答える 2