ExecuteOrDelayUntilScriptLoaded(myFunction,"sp.js"); //SP.SOD.executeFunc('sp.js', 'SP.ClientContext', myFunction); function myFunction() { //逻辑代码 }