摘要: prefix是你选补全的前缀,只需要输入这个按tab键就可以联想出来 body是需要联想出来的内容 $0是光标定位的位置 阅读全文
posted @ 2019-09-15 12:43 LLC-Mite 阅读(213) 评论(0) 推荐(0) 编辑
摘要: @baseWidth:1980px; .pxfix(@w){ width:(@w/@baseWidth)*100vw; } .testWidth{ .pxfix(100); height: 100px; background:red; } 直接上代码,一个简单的函数,传入需要设置的px值,1980是 阅读全文
posted @ 2019-09-15 12:21 LLC-Mite 阅读(3322) 评论(0) 推荐(0) 编辑
摘要: 1、使用indexOf 2、使用match 3、使用test 4、使用stringObject.split(),字符串分割方法,如果字符串可以被分割说明含有这个字符串 <html> <head> <title> test </title> </head> <body> <input type="te 阅读全文
posted @ 2019-09-15 11:49 LLC-Mite 阅读(435) 评论(0) 推荐(0) 编辑