Hallo,
nachstehend ein kleine Programm.
Frage, wieso gibt das ausgelagerte Modul ein anderes Ergebnis wieder.
Innerhalb meiner Anwendung wird sogar die Abfrage ...indexOf('°') mit -1 beantwortet.
System: Win-XP, MS-IE 6.0
Weiß jemand Rat?
Danke, JK
Inhalt Datei index.html:
------------------------
<HTML><BODY><script>
dmy="w°°Bw?"
alert("Test Main "+dmy+" "+dmy.indexOf("°B")+" "+dmy.charCodeAt(1)+" "+dmy.charAt(1))
</script></BODY></HTML>
<SCRIPT src=./Test.js ></SCRIPT>
Inhalt Datei Test.js:
---------------------
dmy="w°°Bw?"
alert("Test js "+dmy+" "+dmy.indexOf("°B")+" "+dmy.charCodeAt(1)+" "+dmy.charAt(1))
-------------------------------------------------------
Anzeige index.html: Test Main w°°Bw? 1 176 °
Anzeige Test.js: Test js w??Bw 1 63 ?