It was found that for an HTML element, the ID can be Chinese and the Dom can be obtained correctly using the getelementbyid method.
The younger brother was ignorant. Today I know that IE supports JavaScript Chinese programming.
< Input type = Button Value = " Gorush " ID = " Ashun " >
< Script >
Function A Shun: onclick () {alert ( This . Value )} // C ++ Style
Function A Shun: onmouseout (){ This . Style. Background = " Green " }
Function A Shun. onmouseover (){ This . Style. Background = " Red " }
Function Can it be Chinese? (){ // Chinese function name
VaR Sure. = " What can't I do? " // Chinese variable name
Alert (of course );
}
Can it be Chinese? ()
</Script>
Section UNICODE:Function\ U3456 (){
VaR\ U1234="Gorush"
Alert (\ u1234)
}
\ U3456 ()
AboveCodeRun the test in ie6.0.
Chinese (UNICODE) Functions and variable names are also supported in Firefox., Ie has not been tested in other versions ,.
In fact, this feature has no practical value. You can play it with it...
BTW:
Firefox does not support C ++ function names
function window: onload (){...} // ie support FF does not support
function window. onload (){...} // ie support FF does not support
window. onload = function (){...} // both IE and FF support