vue基础实践: filter过滤器单词首字母大写
多种方式实现单词首字母大写反转
- 单词首字母大写(正则)
- 词首字母大写(第二种方式写一个方法)
- 单词首字母大写(第二种方式vue过滤器)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>