Giter Club home page Giter Club logo

1.es5🀄️采用\uxxxx形式表示一个字符,但限于\u0000~\uFFF es6中做了改进只要将码点放入大括号,就能正确解读该字符。

2。codePointAt方法,能够正确处理 4 个字节储存的字符 3.插入到源文件的任何换行符都是模版文本的一部分 4.在正常的表达式中嵌入值console.log('my name id'+(a+b)+'shan shan laichi') 5.var a=5; var b=10; console.log(my name id${a+b}the giral is${a8b-b}.) 6.如果在模板字符串中需要使用反引号,则前面要用反斜杠转义。

let greeting = \Yo` World!; 7.使用模板字符串表示多行字符串,所有的空格和缩进都会被保留在输出之中 $('#list').html(

  • first
  • second
`);如果你不想要这个换行,可以使用trim方法消除它。 7.{}内部可以放任意的js表达式,可以进行运算和对象的饮用 8.{}内部还可以调用函数 9.如果模版字符串中的变量没有声明将报错 如let msg = `Hello, ${place}`; 10。如果大括号中的值不是字符串,将按照一般的规则转为字符串。比如,大括号中是一个对象,将默认调用对象的toString方法 11.如果大括号内是一个字符串,那么将字符串输出 12。const tmpl = addrs => ` ${addrs.map(addr => ` `).join('')}
${addr.first}
${addr.last}
`; const data = [ { first: '', last: 'Bond' }, { first: 'Lars', last: '' }, ];

console.log(tmpl(data));

yuxinxiao's Projects

dw-form-making icon dw-form-making

🎉依赖于 vue2 和 element-ui 的可视化表单设计工具🎫,主要涉及递归组件内作用域插槽、组件循环引用处理、简易 vuex 封装等🥝。

git-sdk-64 icon git-sdk-64

A Git repository mirroring the current 64-bit Git for Windows SDK

mallcloud-platform icon mallcloud-platform

mallcloud商城基于SpringBoot2.x、SpringCloud和SpringCloudAlibaba并采用前后端分离vue的企业级微服务敏捷开发系统架构。并引入组件化的**实现高内聚低耦合,项目代码简洁注释丰富上手容易,适合学习和企业中使用。真正实现了基于RBAC、jwt和oauth2的无状态统一权限认证的解决方案,面向互联网设计同时适合B端和C端用户,支持CI/CD多环境部署,并提供应用管理方便第三方系统接入;同时还集合各种微服务治理功能和监控功能。模块包括:企业级的认证系统、开发平台、应用监控、慢sql监控、统一日志、单点登录、Redis分布式高速缓存、配置中心、分布式任务调度、接口文档、代码生成等等

miniprogram-tmp icon miniprogram-tmp

我的微信小程序模板库(My WeChat miniProgram templates.)

vue icon vue

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

vue-managementplatform icon vue-managementplatform

vue-elementUI本项目的定位是后台管理系统,已经完成模块有用户管理、菜单管理、角色管理、公司管理、权限管理、支付配置

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.