摘要: js获取url路径中的参数 <script> $(function(){ // 返回 web 主机的域名,如:http://127.0.0.1:8080/testdemo/test.html?id=1&name=test var url = window.location.href; // 返回当前 阅读全文
posted @ 2020-03-15 16:35 Coding&Fun 阅读(4562) 评论(0) 推荐(0) 编辑
摘要: ES6中提供了模版字符串,用`(反引号)标识,用${variable}将变量括起来 $("#result").append(`He is <b>${person.name}</b>and we wish to know his${person.age}.that is all`); 阅读全文
posted @ 2020-03-15 12:06 Coding&Fun 阅读(1861) 评论(0) 推荐(0) 编辑