script type=textjavascriptinitModellive2d_settingsscript 这里符号出现了错误要怎么改? !--chat input-- div class=chatbox_input div class=chatbox_input_div input id=chatInput type=text
To fix the error, you need to move the <script> tag that initializes the live2d_settings variable to a position after the variable is defined. Here's the corrected code:
<!--chat input-->
<div class="chatbox_input">
<div class="chatbox_input_div">
<input id="chatInput" type="text">
<button id="chatbox_input_send" class="chatbox_input_send">发送</button>
</div>
</div>
</div>
<script>
var live2d_settings = {
userInfo: {
sign: "eyJhbGciOiJSUzI1NiIsImtDZp-o69PA8y5WNRXoNt5bxuH1LFcyBWpofSo-_5LZhxKmrV_1sKmRBPZOHidNSAbo9FFllDCFDP0vaOI5GjKPXZHl-YFcLTBitVGUBErWKow"
},
modelAPI: "https://girl.model3.json",
modelPoint: {
x: 0,
y: 0,
zoom: 1
}
};
initModel(live2d_settings);
</script>
In this code, the initModel(live2d_settings) function call is moved to the end after the live2d_settings variable is defined.
原文地址: https://www.cveoy.top/t/topic/i3f1 著作权归作者所有。请勿转载和采集!