<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> // > < >= <= // let a = 10-vue-router; // let b = 20; // let a = '10-vue-router'; // let b = '20'; //字符串逐个比较ascii大小 let a = '张'; let b = '宇'; console.log(a > b); </script> </body> </html>