Can iframe use the imported js file directly?

function callParent(){
            parent.say();
        }

Don"t do this, I just introduced a js file directly outside, which I want to share with the current iframe. Calling the method alone, that file is too complicated to know how to call

one by one.
May.06,2022

No, window is different

Menu