调用Navigate和AutoJSContext之间有什么不同?
我尝试使用两者,但只是第一种方式。
HTML页面
class MaintenanceForm(ModelForm):
def __init__(self, *args, **kwargs):
super(MaintenanceForm, self).__init__(*args, **kwargs)
self.fields['Impact'].choices = list(MaintenanceType.objects.values_list('id', 'Type'))
class Meta:
model = Maintenance
C#
<script src="shumway/shuobject.js"></script>
<script>
var swf;
// Create/embed SWF movie.
shuobject.embedSWF('ExampleFla.swf', 'mainSWF', 800, 512, '9,0,10', null, {}, {}, {}, function (e) {
swf = document.getElementById("mainSWF");
});
function Mess(){
var swf1 = document.getElementById("mainSWF");
swf1.setFlashVars("VarText1=1"); // It's External Interface with Flash and if it's string comments AutoJSContext also will work
alert("Hello");
}