 
                        如何在外部重新定义js文件中的data参数?
digg: function(obj, projId, subjId, optId) {
    data = {
        'answer': JSON.stringify(answer),
        'login': 1,
        'source': 1,
        'g_tk': generateToken(getKey()),
        'format': 'script',
        'callback': 'parent.AppPlatform.Survey.Digg.ReceiveDiggResult'
    }
}Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
就可以了,函数内的
data的作用范围只在函数内部有效,所以函数外重新定义data完全不影响函数内部data的操作。