Created
September 26, 2017 06:27
-
-
Save guimeisang/391a4854381482dc91b3ac770014dc8b to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/dazaqas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="sdfdsfsdf"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var str = 'tank是坦克英文名称'; | |
console.log(str.match(/[^-~]/g)); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript"> | |
var str = 'tank是坦克英文名称'; | |
console.log(str.match(/[^-~]/g)); | |
</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = 'tank是坦克英文名称'; | |
console.log(str.match(/[^-~]/g)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment