A small number is fine, but if there are many, it will be a dense mass of text. Young artistic people who pay attention to aesthetics will use a large number of characters to connect symbols and even add indents to force it to be replaced by several lines. For example:
Try it now:
Copy code
var RES_POEM = _TEXT(function(){/*
> More stars are falling like rain.
BMW carvings are full of fragrance.
The phoenix flute is sounding, the jade pot is spinning, and the fish are all night The dragon dances.
The moth is covered with golden threads of snow and willow.
Suddenly, when I look back, the man is there in the dim light. );
var res_xml = _Text (function () {/*
& lt; projectDescript & gt;
& lt; name & lt;/name & gt; & gt; & lt;/comment & gt;
& lt; projects>
;/name>
;
.flexbuilder.project.apollobuilder ;
function _TEXT(wrap) {
return wrap.toString().match(//*s([sS]*)s*//)[1];
}
alert(RES_CODE );
alert(RES_POEM);
alert(RES_XML);
OK! In Chrome, the tab in front of each line of comments is removed. If you just put the code, it will not be a big problem~ Of course, the prerequisite is that */
cannot appear in the characters.
It is worth noting that comments will be filtered when compressing the code, and some parts need to be manually excluded.