标签:vendor ted sla get efault over git function https
刚开始旁边的同事一直说是在线编译导致速度慢,后来看到提示有https://github.com/shootaroo/jit-grunt#static-mappings
进去看了说明再检查工程里面是有配置的, 所以不是这个问题.
require(‘jit-grunt‘)(grunt);
然而的怎么改本地数据都没用, 一定是从网上在线请求了欧洲版的数据.
查看Network, 里面vendor.js的请求最多, sources搜language打断点停在这:
function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvider,
pascalprechtTranslateOverrider) { "use strict"; var $preferredLanguage, $languageKeyAliases, $fallbackLanguage,
$fallbackWasString, $uses, $nextLang, $storageFactory, $storagePrefix,
$missingTranslationHandlerFactory, $interpolationFactory, $loaderFactory,
$loaderOptions, $notFoundIndicatorLeft, $notFoundIndicatorRight, loaderCache,
$translationTable = {}, $availableLanguageKeys = [], $storageKey = $STORAGE_KEY,
$interpolatorFactories = [], $cloakClassName = "translate-cloak",
$postCompilingEnabled = !1, $forceAsyncReloadEnabled = !1,
$nestedObjectDelimeter = ".", $isReady = !1, directivePriority = 0,
statefulFilter = !0, uniformLanguageTagResolver = "default", languageTagResolver = {
奶奶掉了这么个借口,这么多参数...
具体到页面html是index.html,login.html,language-switcher.html
Directive是showErrors
<ui-select showErrors data-api-validate id="language" name="language" data-ng-model="user.language" required
theme="bootstrap" ng-disabled="disabled" style="min-width: 300px;">
插件用法 : http://v7sky.iteye.com/blog/2304175
标签:vendor ted sla get efault over git function https
原文地址:http://www.cnblogs.com/haimingpro/p/6389230.html