10
如何用項目符號顯示此字符串?如何使用此字符串顯示項目符號點?
下面是字符串:
if (!this.value || this.value.length < 5) {
alertValidation += "\nYou have not entered a valid Question\n";
}
如何用項目符號顯示此字符串?如何使用此字符串顯示項目符號點?
下面是字符串:
if (!this.value || this.value.length < 5) {
alertValidation += "\nYou have not entered a valid Question\n";
}
如果你想alert()
它,這樣做:
alertValidation += "\n\u2022 You have not entered a valid Question\n";
alert ('\u2022 A, \n\u2022 B, \n\u2022 C, \n\u2022 D');
謝謝:),什麼是u2202,如何使子彈呢? – user1182476 2012-02-04 23:58:08
不客氣,這是一個unicode代碼點。見http://inamidst.com/stuff/unidata/ – ori 2012-02-05 00:06:28