|
|
JavaScriptÓ﷨СʾÀý
- // JavaScript ¸ß¼¶¹¦ÄÜ×ÛºÏʾÀý
- // »ùÓÚ AIWROK Èí¼þ¼¼ÊõÎĵµÖÐµÄ JavaScript Óï¾ä˵Ã÷
- // °üº¬»ù´¡¸ÅÄîºÍ¸ß¼¶¹¦ÄܵÄÍêÕûÑÝʾ
- // ==================== µÚÒ»²¿·Ö£º»ù´¡¸ÅÄî ====================
- console.log("\n========== JavaScript »ù´¡¸ÅÄîÑÝʾ¿ªÊ¼ ==========");
- sleep.second(Ãë=2);
- // 1. JavaScript Óï¾ä - Ó÷ֺŷָôµÄÃüÁî
- console.log("\n¡¾1¡¿JavaScript Óï¾äʾÀý");
- var x = 5 + 6; // Êý×ÖÔËËã
- var y = x * 10; // ±í´ïʽ¼ÆËã
- console.log("x = " + x + ", y = " + y);
- sleep.second(Ãë=2);
- // 2. JavaScript ¹Ø¼ü×ÖʹÓÃʾÀý
- console.log("\n¡¾2¡¿JavaScript ¹Ø¼ü×ÖʹÓÃʾÀý");
- var firstName = "John"; // var ¹Ø¼ü×ÖÉùÃ÷±äÁ¿
- var lastName = "Doe"; // ×Ö·û´®¸³Öµ
- var age = 30; // Êý×Ö¸³Öµ
- var isActive = true; // ²¼¶ûÖµ
- console.log("ÐÕÃû: " + firstName + " " + lastName + ", ÄêÁä: " + age + ", ¼¤»î״̬: " + isActive);
- sleep.second(Ãë=2);
- // 3. JavaScript ×¢ÊÍʾÀý
- // ÕâÊǵ¥ÐÐ×¢ÊÍ£¬²»»á±»Ö´ÐÐ
- /*
- ÕâÊǶàÐÐ×¢ÊÍ
- Ò²²»»á±»Ö´ÐÐ
- */
- // 4. JavaScript Êý¾ÝÀàÐÍʾÀý
- console.log("\n¡¾4¡¿JavaScript Êý¾ÝÀàÐÍʾÀý");
- var length = 16; // Number ÀàÐÍ
- var points = x * 10; // Number ͨ¹ý±í´ïʽ
- var fullName = firstName + " " + lastName; // String ×Ö·û´®Æ´½Ó
- var hobbies = ["ÔĶÁ", "±à³Ì", "Ô˶¯"]; // Array Êý×é
- var person = { // Object ¶ÔÏó
- firstName: firstName,
- lastName: lastName,
- age: age,
- isActive: isActive
- };
- console.log("³¤¶È: " + length + ", ·ÖÊý: " + points);
- console.log("È«Ãû: " + fullName);
- console.log("°®ºÃÊýÁ¿: " + hobbies.length);
- sleep.second(Ãë=2);
- // 5. Êý¾ÝÀàÐͲÙ×÷ʾÀý
- console.log("\n¡¾5¡¿Êý¾ÝÀàÐͲÙ×÷ʾÀý");
- var numStr = 16 + "Volvo"; // Êý×ÖÓë×Ö·û´®Æ´½Ó½á¹ûΪ "16Volvo"
- console.log("Êý×ÖÓë×Ö·û´®Æ´½Ó½á¹û: " + numStr);
- sleep.second(Ãë=2);
- // 6. JavaScript º¯ÊýʾÀý
- console.log("\n¡¾6¡¿JavaScript º¯ÊýʾÀý");
- function calculateArea(width, height) {
- return width * height; // ·µ»ØÃæ»ý¼ÆËã½á¹û
- }
- function greetUser(name) {
- return "ÄãºÃ, " + name + "!"; // ·µ»ØÎʺòÓï
- }
- // µ÷Óú¯Êý
- var area = calculateArea(5, 10);
- var greeting = greetUser(firstName);
- console.log("¾ØÐÎÃæ»ý (5x10): " + area);
- console.log(greeting);
- sleep.second(Ãë=2);
- // 7. ´óСдÃô¸ÐÐÔʾÀý
- console.log("\n¡¾7¡¿´óСдÃô¸ÐÐÔʾÀý");
- var myVariable = "Сд±äÁ¿";
- var MyVariable = "´óд¿ªÍ·±äÁ¿";
- // ×¢Ò⣺myVariable ºÍ MyVariable ÊÇÁ½¸ö²»Í¬µÄ±äÁ¿
- console.log("myVariable: " + myVariable);
- console.log("MyVariable: " + MyVariable);
- console.log("Á½¸ö±äÁ¿²»Í¬: " + (myVariable !== MyVariable));
- sleep.second(Ãë=2);
- // 8. ¸ü¶à¹Ø¼ü×ÖʹÓÃʾÀý
- console.log("\n¡¾8¡¿¿ØÖÆÁ÷¹Ø¼ü×ÖʾÀý");
- if (age >= 18) {
- console.log("ÄêÁä " + age + " - ³ÉÄêÈË");
- } else {
- console.log("ÄêÁä " + age + " - δ³ÉÄêÈË");
- }
- console.log("\n±éÀú°®ºÃÁбí:");
- for (var i = 0; i < hobbies.length; i++) {
- console.log(" °®ºÃ " + (i+1) + ": " + hobbies[i]);
- }
- sleep.second(Ãë=2);
- // 9. switch Óï¾äʾÀý
- console.log("\n¡¾9¡¿switch Óï¾äʾÀý");
- var day = 3;
- var dayName;
- switch (day) {
- case 1:
- dayName = "ÐÇÆÚÒ»";
- break;
- case 2:
- dayName = "ÐÇÆÚ¶þ";
- break;
- case 3:
- dayName = "ÐÇÆÚÈý";
- break;
- default:
- dayName = "ÆäËûÈÕÆÚ";
- }
- console.log("½ñÌìÊÇ: " + dayName);
- sleep.second(Ãë=2);
- // 10. try-catch ´íÎó´¦ÀíʾÀý
- console.log("\n¡¾10¡¿try-catch ´íÎó´¦ÀíʾÀý");
- try {
- var result = undefinedVariable + 10; // Õâ»áÒý·¢´íÎó
- } catch (error) {
- console.log("²¶»ñµ½´íÎó: " + error.message);
- console.log("´íÎó´¦Àí³É¹¦£¡");
- }
- sleep.second(Ãë=2);
- // 11. Êý×é²Ù×÷·½·¨
- console.log("\n¡¾11¡¿Êý×é²Ù×÷·½·¨Ê¾Àý");
- var numbers = [1, 2, 3, 4, 5];
- console.log("ÔʼÊý×é: " + numbers.join(", "));
- numbers.push(6); // Ìí¼ÓÔªËØ
- console.log("pushºó: " + numbers.join(", "));
- numbers.pop(); // ÒÆ³ý×îºóÒ»¸öÔªËØ
- console.log("popºó: " + numbers.join(", "));
- sleep.second(Ãë=2);
- // 12. ¶ÔÏó·½·¨Ê¾Àý
- console.log("\n¡¾12¡¿¶ÔÏó·½·¨Ê¾Àý");
- person.getFullName = function() {
- return this.firstName + " " + this.lastName;
- };
- console.log("ÍêÕûÐÕÃû: " + person.getFullName());
- console.log("ÈËÔ±ÐÅÏ¢: " + JSON.stringify(person));
- sleep.second(Ãë=2);
- // ==================== µÚ¶þ²¿·Ö£º¸ß¼¶¹¦ÄÜ ====================
- console.log("\n========== JavaScript ¸ß¼¶¹¦ÄÜÑÝʾ¿ªÊ¼ ==========");
- sleep.second(Ãë=2);
- // 13. ±Õ°üʾÀý
- console.log("\n¡¾13¡¿±Õ°üʾÀý");
- function createCounter() {
- var count = 0;
- return {
- increment: function() {
- count++;
- return count;
- },
- decrement: function() {
- count--;
- return count;
- },
- getCount: function() {
- return count;
- }
- };
- }
- var counter = createCounter();
- console.log("¼ÆÊýÆ÷³õʼֵ: " + counter.getCount());
- console.log("µÝÔöºó: " + counter.increment());
- console.log("ÔÙµÝÔö: " + counter.increment());
- console.log("µÝ¼õºó: " + counter.decrement());
- sleep.second(Ãë=2);
- // 14. µÝ¹éº¯ÊýʾÀý
- console.log("\n¡¾14¡¿µÝ¹éº¯ÊýʾÀý");
- function factorial(n) {
- if (n <= 1) return 1;
- return n * factorial(n - 1);
- }
- console.log("5µÄ½×³Ë: " + factorial(5));
- console.log("10µÄ½×³Ë: " + factorial(10));
- sleep.second(Ãë=2);
- // 15. ¸ß½×º¯ÊýʾÀý
- console.log("\n¡¾15¡¿¸ß½×º¯ÊýʾÀý");
- function applyOperation(arr, operation) {
- var result = [];
- for (var i = 0; i < arr.length; i++) {
- result.push(operation(arr[i]));
- }
- return result;
- }
- var squaredNumbers = applyOperation([1, 2, 3, 4, 5], function(num) {
- return num * num;
- });
- console.log("ÔʼÊý×é: [1, 2, 3, 4, 5]");
- console.log("ƽ·½Êý×é: " + squaredNumbers.join(", "));
- sleep.second(Ãë=2);
- // 16. ÔÐÍÁ´Ê¾Àý
- console.log("\n¡¾16¡¿ÔÐÍÁ´¼Ì³ÐʾÀý");
- function Animal(name, type) {
- this.name = name;
- this.type = type;
- }
- Animal.prototype.speak = function() {
- return this.name + " ·¢³öÁËÉùÒô";
- };
- function Dog(name) {
- Animal.call(this, name, "¹·");
- }
- Dog.prototype = Object.create(Animal.prototype);
- Dog.prototype.constructor = Dog;
- Dog.prototype.bark = function() {
- return this.name + " ÍôÍô½Ð";
- };
- var myDog = new Dog("Íú²Æ");
- console.log(myDog.speak());
- console.log(myDog.bark());
- sleep.second(Ãë=2);
- // 17. Promise Ä£Ä⣨ÓÉÓÚ»·¾³ÏÞÖÆ£¬Ê¹Óûص÷·½Ê½£©
- console.log("\n¡¾17¡¿Òì²½±à³ÌʾÀý");
- function asyncOperation(data, callback) {
- setTimeout(function() {
- var result = "´¦ÀíÍê³É: " + data;
- callback(null, result);
- }, 100);
- }
- asyncOperation("²âÊÔÊý¾Ý", function(error, result) {
- if (error) {
- console.log("´íÎó: " + error);
- } else {
- console.log(result);
- }
- });
- sleep.second(Ãë=2);
- // 18. Ä£¿é»¯Ä£Ê½
- console.log("\n¡¾18¡¿Ä£¿é»¯Ä£Ê½Ê¾Àý");
- var MathUtils = (function() {
- // ˽ÓбäÁ¿ºÍ·½·¨
- var PI = 3.14159265359;
-
- function validateNumber(num) {
- return typeof num === 'number' && !isNaN(num);
- }
-
- // ¹«¹²API
- return {
- circleArea: function(radius) {
- if (!validateNumber(radius) || radius < 0) {
- throw new Error("ÎÞЧµÄ°ë¾¶Öµ");
- }
- return PI * radius * radius;
- },
- rectangleArea: function(width, height) {
- if (!validateNumber(width) || !validateNumber(height)) {
- throw new Error("ÎÞЧµÄ³ß´çÖµ");
- }
- return width * height;
- },
- add: function(a, b) {
- if (!validateNumber(a) || !validateNumber(b)) {
- throw new Error("ÎÞЧµÄÊý×Ö²ÎÊý");
- }
- return a + b;
- }
- };
- })();
- console.log("Ô²Ãæ»ý (r=5): " + MathUtils.circleArea(5));
- console.log("¾ØÐÎÃæ»ý (5x10): " + MathUtils.rectangleArea(5, 10));
- console.log("¼Ó·¨ (3+7): " + MathUtils.add(3, 7));
- sleep.second(Ãë=2);
- // 19. ʼþÄ£ÄâÆ÷
- console.log("\n¡¾19¡¿Ê¼þϵͳʾÀý");
- var EventEmitter = function() {
- this.events = {};
- };
- EventEmitter.prototype.on = function(event, listener) {
- if (!this.events[event]) {
- this.events[event] = [];
- }
- this.events[event].push(listener);
- };
- EventEmitter.prototype.emit = function(event) {
- if (this.events[event]) {
- var args = Array.prototype.slice.call(arguments, 1);
- this.events[event].forEach(function(listener) {
- listener.apply(null, args);
- });
- }
- };
- var emitter = new EventEmitter();
- emitter.on('greet', function(name) {
- console.log("»¶Ó, " + name + "!");
- });
- emitter.on('data', function(data) {
- console.log("ÊÕµ½Êý¾Ý: " + data);
- });
- emitter.emit('greet', 'Óû§');
- emitter.emit('data', 'ÖØÒªÐÅÏ¢');
- sleep.second(Ãë=2);
- // 20. Êý¾Ý½á¹¹ÊµÏÖ - Õ»
- console.log("\n¡¾20¡¿Õ» (Stack) Êý¾Ý½á¹¹Ê¾Àý");
- function Stack() {
- this.items = [];
- }
- Stack.prototype.push = function(item) {
- this.items.push(item);
- };
- Stack.prototype.pop = function() {
- if (this.isEmpty()) {
- return null;
- }
- return this.items.pop();
- };
- Stack.prototype.peek = function() {
- if (this.isEmpty()) {
- return null;
- }
- return this.items[this.items.length - 1];
- };
- Stack.prototype.isEmpty = function() {
- return this.items.length === 0;
- };
- Stack.prototype.size = function() {
- return this.items.length;
- };
- var stack = new Stack();
- stack.push(1);
- stack.push(2);
- stack.push(3);
- console.log("Õ»¶¥ÔªËØ: " + stack.peek());
- console.log("µ¯³öÔªËØ: " + stack.pop());
- console.log("Õ»´óС: " + stack.size());
- sleep.second(Ãë=2);
- // 21. Êý¾Ý½á¹¹ÊµÏÖ - ¶ÓÁÐ
- console.log("\n¡¾21¡¿¶ÓÁÐ (Queue) Êý¾Ý½á¹¹Ê¾Àý");
- function Queue() {
- this.items = [];
- }
- Queue.prototype.enqueue = function(item) {
- this.items.push(item);
- };
- Queue.prototype.dequeue = function() {
- if (this.isEmpty()) {
- return null;
- }
- return this.items.shift();
- };
- Queue.prototype.front = function() {
- if (this.isEmpty()) {
- return null;
- }
- return this.items[0];
- };
- Queue.prototype.isEmpty = function() {
- return this.items.length === 0;
- };
- Queue.prototype.size = function() {
- return this.items.length;
- };
- var queue = new Queue();
- queue.enqueue("ÈÎÎñ1");
- queue.enqueue("ÈÎÎñ2");
- queue.enqueue("ÈÎÎñ3");
- console.log("¶ÓÊ×ÈÎÎñ: " + queue.front());
- console.log("Íê³ÉÈÎÎñ: " + queue.dequeue());
- console.log("Ê£ÓàÈÎÎñÊý: " + queue.size());
- sleep.second(Ãë=2);
- // 22. ÕýÔò±í´ïʽʾÀý
- console.log("\n¡¾22¡¿ÕýÔò±í´ïʽÑé֤ʾÀý");
- function validateEmail(email) {
- var emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
- return emailRegex.test(email);
- }
- function validatePhone(phone) {
- var phoneRegex = /^1[3-9]\d{9}$/;
- return phoneRegex.test(phone);
- }
- console.log("ÓÊÏäÑéÖ¤ test@example.com: " + validateEmail("test@example.com"));
- console.log("ÊÖ»úºÅÑéÖ¤ 13812345678: " + validatePhone("13812345678"));
- sleep.second(Ãë=2);
- // 23. JSON ²Ù×÷ʾÀý
- console.log("\n¡¾23¡¿JSON Êý¾Ý´¦ÀíʾÀý");
- var userData = {
- id: 1,
- name: "ÕÅÈý",
- age: 25,
- hobbies: ["¶ÁÊé", "ÓÎÓ¾"],
- address: {
- city: "±±¾©",
- street: "³¤°²½Ö100ºÅ"
- }
- };
- var jsonString = JSON.stringify(userData);
- console.log("JSON×Ö·û´®: " + jsonString);
- var parsedData = JSON.parse(jsonString);
- console.log("½âÎöºóµÄÃû×Ö: " + parsedData.name);
- console.log("½âÎöºóµÄ³ÇÊÐ: " + parsedData.address.city);
- sleep.second(Ãë=2);
- // 24. ×Ö·û´®´¦Àí·½·¨
- console.log("\n¡¾24¡¿×Ö·û´®´¦Àí·½·¨Ê¾Àý");
- var text = "Hello World JavaScript";
- console.log("ת´óд: " + text.toUpperCase());
- console.log("תСд: " + text.toLowerCase());
- console.log("×Ó×Ö·û´®: " + text.substring(0, 5));
- console.log("Ìæ»»: " + text.replace("World", "ÓîÖæ"));
- console.log("·Ö¸î: " + text.split(" ").join("-"));
- sleep.second(Ãë=2);
- // 25. ÈÕÆÚºÍʱ¼ä´¦Àí
- console.log("\n¡¾25¡¿ÈÕÆÚºÍʱ¼ä´¦ÀíʾÀý");
- var now = new Date();
- console.log("µ±Ç°Ê±¼ä: " + now.toLocaleString());
- console.log("Äê·Ý: " + now.getFullYear());
- console.log("Ô·Ý: " + (now.getMonth() + 1));
- console.log("ÈÕÆÚ: " + now.getDate());
- console.log("Сʱ: " + now.getHours());
- console.log("·ÖÖÓ: " + now.getMinutes());
- console.log("ÃëÊý: " + now.getSeconds());
- sleep.second(Ãë=2);
- // 26. Map Êý¾Ý½á¹¹
- console.log("\n¡¾26¡¿Map Êý¾Ý½á¹¹Ê¾Àý");
- function CustomMap() {
- this.keys = [];
- this.values = [];
- }
- CustomMap.prototype.set = function(key, value) {
- var index = this.keys.indexOf(key);
- if (index !== -1) {
- this.values[index] = value;
- } else {
- this.keys.push(key);
- this.values.push(value);
- }
- };
- CustomMap.prototype.get = function(key) {
- var index = this.keys.indexOf(key);
- if (index !== -1) {
- return this.values[index];
- }
- return undefined;
- };
- CustomMap.prototype.has = function(key) {
- return this.keys.indexOf(key) !== -1;
- };
- CustomMap.prototype.delete = function(key) {
- var index = this.keys.indexOf(key);
- if (index !== -1) {
- this.keys.splice(index, 1);
- this.values.splice(index, 1);
- return true;
- }
- return false;
- };
- CustomMap.prototype.size = function() {
- return this.keys.length;
- };
- var map = new CustomMap();
- map.set("name", "ÀîËÄ");
- map.set("age", 28);
- map.set("city", "ÉϺ£");
- console.log("MapÖлñÈ¡name: " + map.get("name"));
- console.log("MapÖÐÊÇ·ñ´æÔÚage: " + map.has("age"));
- console.log("Map´óС: " + map.size());
- map.delete("city");
- console.log("ɾ³ýcityºóMap´óС: " + map.size());
- sleep.second(Ãë=2);
- // 27. Set Êý¾Ý½á¹¹
- console.log("\n¡¾27¡¿Set Êý¾Ý½á¹¹Ê¾Àý");
- function CustomSet() {
- this.items = {};
- }
- CustomSet.prototype.add = function(value) {
- this.items[value] = value;
- };
- CustomSet.prototype.has = function(value) {
- return this.items.hasOwnProperty(value);
- };
- CustomSet.prototype.delete = function(value) {
- if (this.has(value)) {
- delete this.items[value];
- return true;
- }
- return false;
- };
- CustomSet.prototype.size = function() {
- return Object.keys(this.items).length;
- };
- CustomSet.prototype.values = function() {
- return Object.keys(this.items);
- };
- var set = new CustomSet();
- set.add(1);
- set.add(2);
- set.add(3);
- set.add(2); // ÖØ¸´Öµ²»»áÌí¼Ó
- console.log("SetÖеÄÖµ: " + set.values().join(", "));
- console.log("Set´óС: " + set.size());
- console.log("ÊÇ·ñ°üº¬2: " + set.has(2));
- set.delete(1);
- console.log("ɾ³ý1ºóSet´óС: " + set.size());
- sleep.second(Ãë=2);
- // 28. ¹Û²ìÕßģʽ
- console.log("\n¡¾28¡¿¹Û²ìÕßģʽʾÀý");
- function Subject() {
- this.observers = [];
- }
- Subject.prototype.addObserver = function(observer) {
- this.observers.push(observer);
- };
- Subject.prototype.removeObserver = function(observer) {
- var index = this.observers.indexOf(observer);
- if (index > -1) {
- this.observers.splice(index, 1);
- }
- };
- Subject.prototype.notify = function(data) {
- this.observers.forEach(function(observer) {
- observer.update(data);
- });
- };
- function Observer(name) {
- this.name = name;
- }
- Observer.prototype.update = function(data) {
- console.log(this.name + " ÊÕµ½¸üÐÂ: " + data);
- };
- var subject = new Subject();
- var observer1 = new Observer("¹Û²ìÕß1");
- var observer2 = new Observer("¹Û²ìÕß2");
- subject.addObserver(observer1);
- subject.addObserver(observer2);
- subject.notify("״̬¸Ä±ä");
- sleep.second(Ãë=2);
- // 29. ¹¤³§Ä£Ê½
- console.log("\n¡¾29¡¿¹¤³§Ä£Ê½Ê¾Àý");
- function createUser(type, name, age) {
- var user = {
- name: name,
- age: age,
- type: type
- };
-
- if (type === "admin") {
- user.permissions = ["read", "write", "delete"];
- } else if (type === "user") {
- user.permissions = ["read"];
- }
-
- user.getInfo = function() {
- return this.name + " (" + this.type + "), ÄêÁä: " + this.age;
- };
-
- return user;
- }
- var admin = createUser("admin", "¹ÜÀíÔ±", 35);
- var regularUser = createUser("user", "ÆÕͨÓû§", 25);
- console.log(admin.getInfo());
- console.log("¹ÜÀíԱȨÏÞ: " + admin.permissions.join(", "));
- console.log(regularUser.getInfo());
- console.log("ÆÕͨÓû§È¨ÏÞ: " + regularUser.permissions.join(", "));
- sleep.second(Ãë=2);
- // 30. ×°ÊÎÆ÷ģʽ
- console.log("\n¡¾30¡¿×°ÊÎÆ÷ģʽʾÀý");
- function Coffee(price) {
- this.price = price;
- }
- Coffee.prototype.cost = function() {
- return this.price;
- };
- function MilkDecorator(coffee) {
- this.coffee = coffee;
- }
- MilkDecorator.prototype.cost = function() {
- return this.coffee.cost() + 5;
- };
- function SugarDecorator(coffee) {
- this.coffee = coffee;
- }
- SugarDecorator.prototype.cost = function() {
- return this.coffee.cost() + 2;
- };
- var basicCoffee = new Coffee(10);
- var milkCoffee = new MilkDecorator(basicCoffee);
- var sweetMilkCoffee = new SugarDecorator(milkCoffee);
- console.log("»ù´¡¿§·È¼Û¸ñ: " + basicCoffee.cost());
- console.log("¼ÓÄÌ¿§·È¼Û¸ñ: " + milkCoffee.cost());
- console.log("¼ÓÌǼÓÄÌ¿§·È¼Û¸ñ: " + sweetMilkCoffee.cost());
- sleep.second(Ãë=2);
- // Êä³öËùÓÐʾÀý½á¹û×ܽá
- console.log("\n========== JavaScript ÑÝʾÍê³É ==========");
- console.log("\nÒÑÑÝʾÒÔϹ¦ÄÜ:");
- console.log("1. »ù´¡Óï·¨ºÍÊý¾ÝÀàÐÍ");
- console.log("2. º¯ÊýºÍ±Õ°ü");
- console.log("3. ÃæÏò¶ÔÏó±à³Ì");
- console.log("4. Òì²½±à³Ìģʽ");
- console.log("5. Ä£¿é»¯Éè¼Æ");
- console.log("6. ʼþϵͳ");
- console.log("7. Êý¾Ý½á¹¹ÊµÏÖ (Õ»¡¢¶ÓÁС¢Map¡¢Set)");
- console.log("8. ÕýÔò±í´ïʽ");
- console.log("9. JSON´¦Àí");
- console.log("10. ×Ö·û´®ºÍÈÕÆÚ´¦Àí");
- console.log("11. Éè¼ÆÄ£Ê½Ó¦Óà (¹¤³§¡¢¹Û²ìÕß¡¢×°ÊÎÆ÷)");
- console.log("\n×ܼÆ: 30¸ö¹¦ÄÜÄ£¿éÑÝʾÍê³É£¡");
- console.log("\n========== ÑÝʾ½áÊø ==========");
¸´ÖÆ´úÂë
|
|