Can Adobe .jsx scripts include other script files?

前端 未结 4 1173
猫巷女王i
猫巷女王i 2021-01-06 10:46

We\'re writing a bunch of .jsx scripts and in each I have to mock out some functions so I can use things like Array.map() and String.trim(), but I don\'t want to have to inc

4条回答
  •  借酒劲吻你
    2021-01-06 11:32

    Just wanted to add a note to Ike10's answer. Undocumented is generous - this is the worst "documentation" I've ever come across in 20+ years of writing code. It seems to me that you must also add the CEFCommandLine argument to your manifest.xml file before the primary JSX file will load/eval external files:

    
        ./whatever.html
        ./jsx/whatever.jsx
        
            --allow-file-access
            --allow-file-access-from-files
        
    
    

提交回复
热议问题