Skip to content

multi-language-switching, 基于Js的DocumentFragment实现前端多语言切换。网站多语言切换,网站多语言解决方案,文章多语言,页面多语言

Notifications You must be signed in to change notification settings

755966092/multi-language-switching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

前端多语言切换

利用文档碎片渲染dom, 整体替换dom树; 实现多语言切换的功能

查看示例

使用方法

引入

<script src="./js/language.js"></script>

创建Language对象

new Language(�选择器, 语言数据)

插值表达式

<h1>{{ 变量名 }}</h1>

自定义指令

<h1 lang="变量"></h1>

属性

<input lang-placeholder="变量" />

About

multi-language-switching, 基于Js的DocumentFragment实现前端多语言切换。网站多语言切换,网站多语言解决方案,文章多语言,页面多语言

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published