You can't export a variable, only a value.
At the time you export
the value of wordClicked
, that value is undefined
.
You can't change the exported value later.
You could export an object and then later change a property of that object, but likely you will need to make the event listener functions themselves responsible for opening the model.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…