看板 Web_Design 關於我們 聯絡資訊
※ 引述《doomramboo (布丁奶茶去冰)》之銘言: : 想請問有沒有網頁語言 : 有提供存取16進位(2元資料型態)的資料型態嗎 : 就是能夠存放ASCII碼的型態 : 字串只能放1~9 , A~Z , a~z 跟標點符號 : 無法存放其他的ASCII碼 : 坊間的書似乎都沒有提到 : 有人知道的話拜託了>"< ASCII跟16進位沒有關係吧?.? 那只是編碼table而已。 基礎ASCII是規範char 在 0~128 對應的字元, 你要查的應該是怎麼建立char,跟十六進位倒是沒甚麼關係。 底下以 ASCII 13 (new line = \n )為例 舉例來講 ------------------------------------------- javascript alert("hi"+String.fromCharCode(13)+"hello"); String.fromCharCode(13) // "\n" -------------------- 以jsp (java語系) 而言 char a = 13; // \n System.out.println("hi"+a+"hello"); -------------------- vb/asp/asp.net 通用的 Chr(13) -- I am a person, and I am always thinking . Thinking in love , Thinking in life , Thinking in why , Thinking in worth. I can't believe any of what , I am just thinking then thinking , but worst of all , most of mine is thinking not actioning... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.138.149.21