我的方法是覆写url_for,但我觉得肯定有别的方法配置。
在发现url_for('static')的时候调用新的方法,调用常量STATIC_URL_ROOT。
STATIC_URL_ROOT = '//xxx.com/css/'
@app.context_processor
def override_url_for():
    return dict(url_for=static_url_for)
def static_url_for(endpoint, **values):
    if endpoint == 'static':
        filename = values.get('filename', None)
        if filename:
            file_path = STATIC_URL_ROOT + filename
            return file_path
    else:
        return url_for(endpoint, **values)