Explorar o código

background color about vue component

night-cherry hai 3 semanas
pai
achega
4e7b028030
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -152,7 +152,7 @@ const app=createApp({
       console.log("locale : "+locale);
 //    this.locale=locale;
 //    在根文件直接使用locale需要绑定一个locale变量至浏览器对象Window
-//    否则无法让methods中的方法调用其中的变量(全局变量)
+//    否则无法让methods中的方法调用其中的变量(全局变量) 
 //    如果封装在组件中,然后提供给父组件使用,则直接定义函数即可
     window.locale=locale;
     locale.value="en";