Currently, adding attachments with the AttachmentEditor using the downloadable version of the 3.11 JavaScript API fails with the following error in the console, "SyntaxError: Unexpected token <(…."
This issues is not reproducible in the current version of the API.
解决办法
Replace the downloaded 3.11 init.js file with the <a href="http://js.arcgis.com" target="_blank">js.arcgis.com</a> hosted version, and replace the '<a href="http://js.arcgis.com/3.11/dojo" target="_blank">js.arcgis.com/3.11/dojo</a>' reference. (This workaround is only tested with attachment editor issues.)