How is the type in the script tag of html customized?

problem description

can type like text/template be easily defined? Or are there any defining rules and reading rules?

the environmental background of the problems and what methods you have tried

see a piece of code, write an object in script, do not understand how to read this? The current idea is to read innerHTML, but it feels strange, is there any other way to read it?

related codes

/ / Please paste the code text below (do not replace the code with pictures)
< script type= "text/lizard-config" >
{

url_schema: "hotellist",
viewName: "hotellist",
model:{
  apis: []
},
view:{
  "header": Lizard.T("<h1></h1>"),
  "viewport": Lizard.T("hotellistTmpl")
},
controller: __resource_base_url__ + "webresource/views/dp.hotel.list.js"

}
< / script >

Jul.18,2022

there are no defined rules for type customization. It is also true that reads are basically innerHTML reads.

it's just that when type customizes , the browser does not execute the code .

of course, if type is set to a value that the browser can recognize, for example:

  • module will recognize the module as ES6 ;
  • text/javascript , text/ecmascript , application/javascript , application/ecmascript or does not write will be recognized as JS code execution;
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7ba4be-29fb6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7ba4be-29fb6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?