pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  1. <tfoot id='H51cC'></tfoot>
    <i id='H51cC'><tr id='H51cC'><dt id='H51cC'><q id='H51cC'><span id='H51cC'><b id='H51cC'><form id='H51cC'><ins id='H51cC'></ins><ul id='H51cC'></ul><sub id='H51cC'></sub></form><legend id='H51cC'></legend><bdo id='H51cC'><pre id='H51cC'><center id='H51cC'></center></pre></bdo></b><th id='H51cC'></th></span></q></dt></tr></i><div class="cqcguoq" id='H51cC'><tfoot id='H51cC'></tfoot><dl id='H51cC'><fieldset id='H51cC'></fieldset></dl></div>

  2. <small id='H51cC'></small><noframes id='H51cC'>

    <legend id='H51cC'><style id='H51cC'><dir id='H51cC'><q id='H51cC'></q></dir></style></legend>

        <bdo id='H51cC'></bdo><ul id='H51cC'></ul>

      嘗試在 Chrome 中加載儀表板頁面時避免使用 docu

      Avoid using document.write() occurs when trying to load a dashboard page in Chrome(嘗試在 Chrome 中加載儀表板頁面時避免使用 document.write())

        <small id='WgmHi'></small><noframes id='WgmHi'>

          <tbody id='WgmHi'></tbody>

              <bdo id='WgmHi'></bdo><ul id='WgmHi'></ul>
              <i id='WgmHi'><tr id='WgmHi'><dt id='WgmHi'><q id='WgmHi'><span id='WgmHi'><b id='WgmHi'><form id='WgmHi'><ins id='WgmHi'></ins><ul id='WgmHi'></ul><sub id='WgmHi'></sub></form><legend id='WgmHi'></legend><bdo id='WgmHi'><pre id='WgmHi'><center id='WgmHi'></center></pre></bdo></b><th id='WgmHi'></th></span></q></dt></tr></i><div class="fnrzht7" id='WgmHi'><tfoot id='WgmHi'></tfoot><dl id='WgmHi'><fieldset id='WgmHi'></fieldset></dl></div>
                <legend id='WgmHi'><style id='WgmHi'><dir id='WgmHi'><q id='WgmHi'></q></dir></style></legend><tfoot id='WgmHi'></tfoot>

              • 本文介紹了嘗試在 Chrome 中加載儀表板頁面時避免使用 document.write()的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                所以我被困在這個問題上的時間比我愿意承認的要長,但作為一個 Angular 新手,我完全感到困惑.

                So I have been stuck on this problem for longer than i'd care to admit but as a Angular newbie I am completely baffled.

                所以我正在關注一些在線教程,以便將 Gulp 實施到我正在開發的應用程序中,每當我運行 Gulp 任務時,我都會在 Chrome 中收到錯誤消息:

                So I am following some online tutorials in order to implement Gulp into an application I am working on and whenever I run the Gulp tasks I get an error in Chrome which states:

                "[違規] 避免使用 document.write().(anonymous)@(index):13"

                和:

                ///script>".replace("HOST",位置.主機名));//]]>

                我更加困惑,因為 index.html 在執行之前實際上并不包含 document.write 引用.此外,盡管在集成 Gulp 時主要遵循教程,但我似乎無法在屏幕上反映 CSS 背景更改,這可能與前面提到的錯誤有關嗎?

                I am even more confused as the index.html doesn't actually contain a document.write reference before execution. Also despite mostly following a tutorial when integrating Gulp I cannot seem to have the CSS background changes reflected on screen, could this be related to the previously mentioned error?

                index.html

                <!DOCTYPE html>
                <html>
                <head lang="en">
                    <meta charset="utf-8">
                    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
                    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
                    <title>SmartSystemOverviewWeb</title>
                    <link rel="icon" type="image/x-icon" href="favicon.ico">
                <link href="app/css/styles.css" rel="stylesheet">
                </head>
                
                <body>
                <sso-dashboard>  
                    Loading...    
                  <i class="fa fa-spinner fa-spin"></i>
                </sso-dashboard>
                
                  <script type="text/typescript" src="app/vendor.ts"></script>
                  <!-- <script src="app/app.component.js"></script> -->
                </body>
                </html>

                gulpfile.js

                var gulp = require('gulp');
                var sass = require('gulp-sass');
                var sourcemaps = require('gulp-sourcemaps');
                var tsc = require('gulp-typescript');
                var tslint = require('gulp-tslint');
                var tsProject = tsc.createProject('tsconfig.json');
                var config = require('./gulp.config')();
                
                var browserSync = require('browser-sync').create();
                var superstatic = require('superstatic');
                var useref = require('gulp-useref');
                var uglify = require('gulp-uglify');
                var gulpIf = require('gulp-if');
                var minifyCSS = require('gulp-minify-css');
                var imagemin = require('gulp-imagemin');
                var cache = require('gulp-cache');
                var del = require('del');
                var runSequence = require('run-sequence');
                
                /*
                -- TOP LEVEL FUNCTIONS --
                gulp.task - Define tasks
                gulp.src - point to files to use
                gulp.dest - point to folder to output
                gulp.watch - watch files + folders for changes
                */
                
                // Logs Message
                gulp.task('message', function(){
                    return console.log('Gulp is running...');
                });
                
                gulp.task('ts-lint', function() {
                    console.log('ts-lint task running...');
                    return gulp.src(config.allTs)
                        .pipe(tslint())
                        .pipe(tslint({
                            formatter: "verbose"
                        }))
                        // .pipe(tslint.report("verbose"))
                })
                
                gulp.task('compile-ts', function() {
                    console.log('compile-ts task running...');
                    var sourceTsFiles = [
                        config.allTs,
                        config.typings
                    ];
                
                    var tsResult = gulp
                    .src(sourceTsFiles)
                    .pipe(sourcemaps.init())
                    .pipe(tsProject())
                
                    return tsResult.js
                    .pipe(sourcemaps.write('.'))
                    .pipe(gulp.dest(config.tsOutputPath));
                });
                
                gulp.task('sass', function(){
                    console.log('sass is running...');
                    // return gulp.src('src/app/styles.scss')
                    return gulp.src('src/app/**/*.scss')
                      .pipe(sass()) // Using gulp-sass
                      .pipe(gulp.dest('src/app/css'))
                      .pipe(browserSync.reload({
                        stream: true
                      }))
                    });
                
                gulp.task('browserSync', function() {
                    console.log('browserSync is running...');
                    
                    browserSync.init({
                        // port: 4200,
                        // file: ['index.html', '**/*.js'],
                        // injectChanges: true,
                        // logFileChanges: true,
                        // logLevel: 'verbose',
                        // notify: true,
                        // reloadDelay: 0,
                      server: {
                        baseDir: 'src',
                        middleware: superstatic({debug: false})
                      },
                    })
                })
                
                gulp.task('watch', ['browserSync', 'sass'], function(){
                    gulp.watch('src/app/**/*.scss', ['sass']); 
                    gulp.watch('src/app/component/**/*.scss', ['sass']); 
                    // Reloads the browser whenever HTML or JS files change
                    gulp.watch('src/app/**/*.html', browserSync.reload);
                    gulp.watch('src/app/component/**/*.html', browserSync.reload);
                    gulp.watch('src/app/**/*.js', browserSync.reload);
                    gulp.watch('src/app/component/**/*.js', browserSync.reload);    
                    gulp.watch('src/*.html', browserSync.reload);    
                })
                
                gulp.task('useref', function() {
                	var assets = useref.assets();
                
                	return gulp.src('app/*.html')
                		.pipe(assets)
                		.pipe(gulpIf('*.css', minifyCSS()))
                		.pipe(gulpIf('*.js', uglify()))
                		.pipe(assets.restore())
                		.pipe(useref())
                		.pipe(gulp.dest('dist'))
                });
                
                gulp.task('images', function() {
                	return gulp.src('app/images/**/*.+(png|jpg|jpeg|gif|svg)')
                	.pipe(cache(imagemin( {
                		interlaced: true
                	})))
                	.pipe(gulp.dest('dist/images'))
                });
                
                gulp.task('fonts', function() {
                	return gulp.src('app/fonts/**/*')
                	.pipe(gulp.dest('dist/fonts'))
                });
                
                // Cleaning
                gulp.task('clean', function(callback) {
                	del('dist');
                	return cache.clearAll(callback);
                })
                
                
                gulp.task('clean:dist', function(callback) {
                	del(['dist/**/*', '!dist/images', '!dist/images/**/*'], callback)
                });
                
                // Build Sequences
                gulp.task('build', function (callback) {
                	runSequence('clean:dist',
                		['sass', 'useref', 'images', 'fonts'],
                		callback
                		)
                })
                
                gulp.task('default', function (callback) {
                	runSequence(['message', 'ts-lint', 'sass', 'browserSync', 'watch'],
                		callback
                		)
                })

                styles.css

                .testing {
                  width: 71.42857%; }
                
                .head {
                  background: red; }
                
                .body {
                  background: #177794; }
                
                .html {
                  background: green; }

                任何解決這些問題的提示或建議將不勝感激!

                Any tips or advice to solve these issues would be greatly appreciated!

                提前致謝!

                推薦答案

                違規消息是由browserSync引起的,它將在文檔中添加以下行.

                The violation message is caused by browserSync that will add the following line to the document.

                <script id="__bs_script__">//<![CDATA[
                    document.write("<script async src='/browser-sync/browser-sync-client.js?v=2.23.3'></script>".replace("HOST", location.hostname));
                //]]></script>
                

                這幾乎可以忽略,因為它只會在通過 browserSync 查看應用時影響應用,而不是最終應用.

                This can be pretty much ignored as it will only affect the app when it's viewed through browserSync and not the final app.

                這篇關于嘗試在 Chrome 中加載儀表板頁面時避免使用 document.write()的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)

                  <bdo id='gvFyp'></bdo><ul id='gvFyp'></ul>

                    <legend id='gvFyp'><style id='gvFyp'><dir id='gvFyp'><q id='gvFyp'></q></dir></style></legend>

                      <i id='gvFyp'><tr id='gvFyp'><dt id='gvFyp'><q id='gvFyp'><span id='gvFyp'><b id='gvFyp'><form id='gvFyp'><ins id='gvFyp'></ins><ul id='gvFyp'></ul><sub id='gvFyp'></sub></form><legend id='gvFyp'></legend><bdo id='gvFyp'><pre id='gvFyp'><center id='gvFyp'></center></pre></bdo></b><th id='gvFyp'></th></span></q></dt></tr></i><div class="vzpt5lv" id='gvFyp'><tfoot id='gvFyp'></tfoot><dl id='gvFyp'><fieldset id='gvFyp'></fieldset></dl></div>
                        <tbody id='gvFyp'></tbody>
                      • <small id='gvFyp'></small><noframes id='gvFyp'>

                        • <tfoot id='gvFyp'></tfoot>
                          主站蜘蛛池模板: 粉末冶金注射成型厂家|MIM厂家|粉末冶金齿轮|MIM零件-深圳市新泰兴精密科技 | 带式压滤机_污泥压滤机_污泥脱水机_带式过滤机_带式压滤机厂家-河南恒磊环保设备有限公司 | 净水器代理,净水器招商,净水器加盟-FineSky德国法兹全屋净水 | 日本SMC气缸接头-速度控制阀-日本三菱伺服电机-苏州禾力自动化科技有限公司 | 蔬菜清洗机_环速洗菜机_异物去除清洗机_蔬菜清洗机_商用洗菜机 - 环速科技有限公司 | 哲力实业_专注汽车涂料汽车漆研发生产_汽车漆|修补油漆品牌厂家 长沙一级消防工程公司_智能化弱电_机电安装_亮化工程专业施工承包_湖南公共安全工程有限公司 | 博客-悦享汽车品质生活| 期货软件-专业期货分析软件下载-云智赢 | 水质监测站_水质在线分析仪_水质自动监测系统_多参数水质在线监测仪_水质传感器-山东万象环境科技有限公司 | 精密模具-双色注塑模具加工-深圳铭洋宇通 | 体检车_移动CT车_CT检查车_CT车_深圳市艾克瑞电气有限公司移动CT体检车厂家-深圳市艾克瑞电气有限公司 | 磷酸肌酸二钠盐,肌酐磷酰氯-沾化欣瑞康生物科技 | 代理记账_免费注册公司_营业执照代办_资质代办-【乐财汇】 | 塑胶地板-商用PVC地板-pvc地板革-安耐宝pvc塑胶地板厂家 | 水性绝缘漆_凡立水_绝缘漆树脂_环保绝缘漆-深圳维特利环保材料有限公司 | 软瓷_柔性面砖_软瓷砖_柔性石材_MCM软瓷厂家_湖北博悦佳软瓷 | 储气罐,真空罐,缓冲罐,隔膜气压罐厂家批发价格,空压机储气罐规格型号-上海申容压力容器集团有限公司 | 穿线管|波纹穿线管|包塑金属软管|蛇皮管?闵彬专注弱电工程? | 鲁尔圆锥接头多功能测试仪-留置针测试仪-上海威夏环保科技有限公司 | 球形钽粉_球形钨粉_纳米粉末_难熔金属粉末-广东银纳官网 | 便民信息网_家电维修,家电清洗,开锁换锁,本地家政公司 | 3A别墅漆/3A环保漆_广东美涂士建材股份有限公司【官网】 | 短信营销平台_短信群发平台_106短信发送平台-河南路尚 | 变色龙PPT-国内原创PPT模板交易平台 - PPT贰零 - 西安聚讯网络科技有限公司 | 北京开源多邦科技发展有限公司官网 | 高速混合机_锂电混合机_VC高效混合机-无锡鑫海干燥粉体设备有限公司 | 物和码官网,物和码,免费一物一码数字化营销SaaS平台 | 车充外壳,车载充电器外壳,车载点烟器外壳,点烟器连接头,旅行充充电器外壳,手机充电器外壳,深圳市华科达塑胶五金有限公司 | 浙江清风侠环保设备有限公司| 模具ERP_模具管理系统_模具mes_模具进度管理_东莞市精纬软件有限公司 | 超细粉碎机|超微气流磨|气流分级机|粉体改性设备|超微粉碎设备-山东埃尔派粉碎机厂家 | 知企服务-企业综合服务(ZiKeys.com)-品优低价、种类齐全、过程管理透明、速度快捷高效、放心服务,知企专家! | 油液红外光谱仪-油液监测系统-燃油嗅探仪-上海冉超光电科技有限公司 | 车牌识别道闸_停车场收费系统_人脸识别考勤机_速通门闸机_充电桩厂家_中全清茂官网 | 全自动贴标机-套标机-工业热风机-不干胶贴标机-上海厚冉机械 | 深圳办公室装修-写字楼装修设计-深圳标榜装饰公司 | 润滑油加盟_润滑油厂家_润滑油品牌-深圳市沃丹润滑科技有限公司 琉璃瓦-琉璃瓦厂家-安徽盛阳新型建材科技有限公司 | 焊锡丝|焊锡条|无铅锡条|无铅锡丝|无铅焊锡线|低温锡膏-深圳市川崎锡业科技有限公司 | 层流手术室净化装修-检验科ICU改造施工-华锐净化工程-特殊科室建设厂家 | 郑州宣传片拍摄-TVC广告片拍摄-微电影短视频制作-河南优柿文化传媒有限公司 | 自动部分收集器,进口无油隔膜真空泵,SPME固相微萃取头-上海楚定分析仪器有限公司 |