| As an important way of education to cultivate students’ ability to explore and understand the scientific world,elementary school science experiment has become a major part of practical activities.However,at present,due to the difficulty in obtaining experimental equipment in specific experimental inquiry and the inability to create real situations with some teaching contents,students’ curiosity and sense of participation are greatly limited.Therefore,it is necessary to design a software framework to support primary school scientific experiments,so as to enrich the current primary school teaching activities.Therefore,this paper takes the content of primary school science experiments as the research object and studies the software architecture based on HTML5 to support primary school science experiments.The main work is as follows:(1)A set of experimental interface editing method based on Flash is designed.First,the experimental elements are extracted through the analysis of experimental requirements,and these elements are designed and edited in Flash.Secondly,the Flash document access technology is introduced,and the stage elements are obtained by using JSFL scripting language to traverse the experimental Flash document layer by layer.Then,the elements are classified and initialized according to the characteristics of the small family experiment.Then,considering that a large amount of experimental data will inevitably lead to longer pre-load waiting time and affect user experience,the initialized objects are serialized and exported as resource materials and configuration files.Finally,the ViewStack container component is used to store the deserialized elements of the resource file in order to complete the loading of the experimental interface by traversing the container root directory.(2)An experimental element mouse interaction method based on event flow is implemented.Mouse is the most frequent interaction device in the small science experiment and exploration activities.Based on the interaction process of DOM event flow,this paper studies the implementation of mouse interaction.First of all,five mouse events of DOM3 level are selected based on experimental interaction requirements,and event binding and unbinding operations are carried out respectively.Then,the mouse drag behavior was explored,the drag principle was discussed,and the algorithm implementation was given,which effectively supports the exploration of the experiment.Finally,in view of the current situation of users’ understanding deviation or step ambiguity in the process of exploring the experiment,the experimental steps of list menu items are designed to clearly show the operation details of each step of the experiment.(3)The architecture-based extraction of small family experimental components is realized.In the process of small branch experiment development,it is inevitable to encounter the phenomenon that similar experiments or multiple experiments refer to the same algorithm.Therefore,this paper first analyzes and designs common algorithms and similar experiments currently used in the development of small science experiments,and at the same time,encapsulates them as components and stores them in the component library.Secondly,based on the component-based software development method,the component-based development process is developed by using the existing components in the component library and combining the characteristics of small science experiments.Thus,not only enrich the component library,but also significantly improve the development efficiency and progress of the experiment.(4)This paper presents a development process model based on the small branch experimental architecture.The model consists of four stages:requirement analysis,experimental design,functional coding and software testing,which are carried out sequentially with each other,but with mutual references among sub-modules.Secondly,the experiment used for the model development is introduced in detail,which obviously improves the experimental development quantity.Finally,the current developed experiments are selected to be evaluated from the perspective of functionality and non-functionality,and the effectiveness and applicability of the key technologies of the framework of this paper for the experimental development of scientific experiments in primary schools are verified. |