$DOCUMENTS 文档目录。一个当前用户典型的路径形如 C:\Documents and Settings\Foo\My Documents。这个常量的内容(所有用户或当前用户)取决于 SetShellVarContext 设置。默认为当前用户。 该常量在 Windows 95 且 Internet Explorer 4 没有安装时无效。
$SENDTO 该目录包含了“发送到”菜单快捷项。
$RECENT 该目录包含了指向用户最近文档的快捷方式。
$FAVORITES 该目录包含了指向用户网络收藏夹、文档等的快捷方式。这个常量的内容(所有用户或当前用户)取决于 SetShellVarContext 设置。默认为当前用户。 该常量在 Windows 95 且 Internet Explorer 4 没有安装时无效。
$MUSIC 用户的音乐文件目录。这个常量的内容(所有用户或当前用户)取决于 SetShellVarContext 设置。默认为当前用户。 该常量仅在 Windows XP、ME 及以上才有效。
$PICTURES 用户的图片目录。这个常量的内容(所有用户或当前用户)取决于 SetShellVarContext 设置。默认为当前用户。 该常量仅在 Windows 2000、XP、ME 及以上才有效。
$VIDEOS 用户的视频文件目录。这个常量的内容(所有用户或当前用户)取决于 SetShellVarContext 设置。默认为当前用户。 该常量仅在 Windows XP、ME 及以上才有效。
$NETHOOD 该目录包含了可能存在于我的网络位置、网上邻居文件夹的链接对象。 该常量在 Windows 95 且 Internet Explorer 4 和活动桌面没有安装时无效。
$APPDATA 应用程序数据目录。当前用户路径的检测需要 Internet Explorer 4 及以上。所有用户路径的检测需要 Internet Explorer 5 及以上。这个常量的内容(所有用户或当前用户)取决于 SetShellVarContext 设置。默认为当前用户。 该常量在 Windows 95 且 Internet Explorer 4 和活动桌面没有安装时无效。
$PRINTHOOD 该目录包含了可能存在于打印机文件夹的链接对象。 该常量在 Windows 95 和 Windows 98 上无效。
$INTERNET_CACHE Internet Explorer 的临时文件目录。 该常量在 Windows 95 和 Windows NT 且 Internet Explorer 4 和活动桌面没有安装时无效。
$COOKIES Internet Explorer 的 Cookies 目录。 该常量在 Windows 95 和 Windows NT 且 Internet Explorer 4 和活动桌面没有安装时无效。
$HISTORY Internet Explorer 的历史记录目录。 该常量在 Windows 95 和 Windows NT 且 Internet Explorer 4 和活动桌面没有安装时无效。
$PROFILE 用户的个人配置目录。一个典型的路径如 C:\Documents and Settings\Foo。 该常量在 Windows 2000 及以上有效。
$ADMINTOOLS 一个保存管理工具的目录。这个常量的内容(所有用户或当前用户)取决于 SetShellVarContext 设置。默认为当前用户。 该常量在 Windows 2000、ME 及以上有效。
$RESOURCES 该资源目录保存了主题和其他 Windows 资源(通常为 C:\Windows\Resources 但在运行时会检测)。 该常量在 Windows XP 及以上有效。
$RESOURCES_LOCALIZED 该本地的资源目录保存了主题和其他 Windows 资源(通常为 C:\Windows\Resources\1033 但在运行时会检测)。 该常量在 Windows XP 及以上有效。
$CDBURN_AREA 一个在烧录 CD 时储存文件的目录。. 该常量在 Windows XP 及以上有效。
$HWNDPARENT 父窗口的十进制 HWND。
$PLUGINSDIR 该路径是一个临时目录,当第一次使用一个插件或一个调用 InitPluginsDir 时被创建。该文件夹当解压包退出时会被自动删除。这个文件夹的用意是用来保存给 InstallOptions 使用的 INI 文件、启动画面位图或其他插件运行需要的文件。
NGX-Translate is an internationalization library for Angular. NGX-Translate is also extremely modular. It is written in a way that makes it really easy to replace any part with a custom implementation in case the existing one doesn’t fit your needs.
export class AppComponent { constructor(translate: TranslateService) { // this language will be used as a fallback when a translation isn't found in the current language translate.setDefaultLang('en'); // the lang to use, if the lang isn't available, it will use the current loader to get them translate.use('en'); } }
msgctxt "ErrorMessage|" msgid "" "Application preferences have been damaged. Reinstall the application to " "solve the problem." msgstr "" "Předvolby aplikace byly poškozeny. Problém vyřešíte opětovnou instalací " "aplikace." ====> { ... "ErrorMessage|":{ msgctxt:"ErrorMessage|", msgid:"Application preferences have been damaged. Reinstall the application to solve the problem.", msgstr:["Předvolby aplikace byly poškozeny. Problém vyřešíte opětovnou instalací aplikace."] } }
ng build, ng serve是JIT, ng build —aot, ng build —prod, ng serve —aot是AOT 从Angular 9开始,默认情况下,对于提前编译器,编译选项设置为true。
JIT(Just in Time)由浏览器将源码编译成js执行,QQs:浏览器居然可以编译代码! AOT(Ahead of Time)先编译成可执行的js,再交给浏览器
The Angular ahead-of-time (AOT) compiler converts Angular HTML and TypeScript code into efficient JavaScript code during the build phase, before the browser downloads and runs that code. This is the best compilation mode for production environments, with decreased load time and increased performance compared to just-in-time (JIT) compilation.AOT 编译器在浏览器下载并运行之前,将Angular HTML、 ts代码转为es5代码,是生产环境的最佳实践,相比JIT更能缩短加载时间并提高性能 (aot会根据angular.json 的配置生成到/dist之类的目录) 在angular.json中配置build命令的选项,包括生成目录等
SELECT * from LocalExport where (ISNULL(@SSO, '')='' OR SSO=@SSO) and (ISNULL(@SN, '')='' OR SN=@SN)
动态SQL语句
1 2 3 4 5 6 7 8 9 10
SET @SQL='select * from LocalExport where 1=1'; IF @SSO is not null BEGIN SET @SQL=@SQL+' AND SSO=@SSO' END IF @SN is not null BEGIN SET @SQL=@SQL+' AND SN=@SN' END EXEC sp_executesql @SQL
Internationalization is the process of designing and preparing your app to be usable in different languages. Localization is the process of translating your internationalized app into specific languages for particular locales.
Uncaught Error: It looks like your application or one of its dependencies is using i18n. Angular 9 introduced a global `$localize()` function that needs to be loaded. Please run `ng add @angular/localize` from the Angular CLI. (For non-CLI projects, add `import ‘@angular/localize/init’;` to your `polyfills.ts` file.
import { enableProdMode, TRANSLATIONS, TRANSLATIONS_FORMAT, MissingTranslationStrategy } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module'; import { environment } from './environments/environment';
if (environment.production) { enableProdMode(); }
// use the require method provided by webpack declare const require; // we use the webpack raw-loader to return the content as a string const translations = require('raw-loader!./locale/translate.fr.xlf').default;