一:正则表达式
格式数字 取小数点后1位,如果小数点后为0 ,则去掉小数点
let num = 270.01111;
num.toString().replace(/\.(\d)\d+/g,'.$1').replace(".0","")
结果:
一:正则表达式
格式数字 取小数点后1位,如果小数点后为0 ,则去掉小数点
let num = 270.01111;
num.toString().replace(/\.(\d)\d+/g,'.$1').replace(".0","")
结果:
howler音頻插件 配置項及事件 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <s
window對象:每一個該對象代表一個瀏覽器窗口 1.常用方法如下 open("要打開的頁面文件名","打開窗口在操作系統中的名稱(任何名稱都可以)", "toolbar=?,menubar=?,
<style type=text/css>td { font-size: 12px; color: #000000; line-heig