From 3f9bac35e1af4e2aa25d90ccad9c419c3a792c51 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 18 三月 2025 08:52:28 +0800
Subject: [PATCH] 翻译js
---
WebTM/WebTM.csproj | 1 +
WebTM/layuiadmin/MESLanguage.js | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index 92a4de9..f2af79a 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -157,6 +157,7 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="layuiadmin\modules\tableSelect.js" />
+ <Content Include="layuiadmin\MESLanguage.js" />
<Content Include="layuiadmin\treeTable.js" />
<Content Include="layuiadmin\PubCustom.js" />
<Content Include="layuiadmin\PubJs\PubCheck.js" />
diff --git a/WebTM/layuiadmin/MESLanguage.js b/WebTM/layuiadmin/MESLanguage.js
new file mode 100644
index 0000000..98ce07a
--- /dev/null
+++ b/WebTM/layuiadmin/MESLanguage.js
@@ -0,0 +1,35 @@
+//纭繚DOM瀹屽叏鍔犺浇鍚庡啀鎵ц
+//document.addEventListener('DOMContentLoaded', function () {
+// initFunction();
+//});
+//$(document).on('click', '.layui-btn', function () {
+// initFunction();
+//});
+
+document.addEventListener('click', function (event) {
+ Btn();
+});
+
+function Lable() {
+ var Lable = document.querySelectorAll('.layui-form-label').length;
+ for (var i = 0; i < Lable; i++) {
+ console.log(document.querySelectorAll('.layui-form-label')[i].innerHTML);
+ }
+ for (var i = 0; i < Lable; i++) {
+ document.querySelectorAll('.layui-form-label')[i].innerHTML = document.querySelectorAll('.layui-form-label')[i].textContent + "1";
+ }
+}
+function initFunction() {
+ Btn();
+ Lable();
+}
+
+function Btn() {
+ var Btn = document.querySelectorAll('button>text').length;
+ for (var i = 0; i < Btn; i++) {
+ console.log(document.querySelectorAll('button>text')[i].innerHTML);
+ }
+ for (var i = 0; i < Btn; i++) {
+ document.querySelectorAll('button>text')[i].innerHTML = document.querySelectorAll('button>text')[i].textContent + "1";
+ }
+}
--
Gitblit v1.9.1