在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答
殘淚 回答

沒(méi)有權(quán)限。看起來(lái)你用的是 Mac,看下這個(gè)吧:https://help.github.com/artic...

尐懶貓 回答

先看文件夾有沒(méi)有權(quán)限,一般情況下是有權(quán)限的,因?yàn)闆](méi)權(quán)限會(huì)報(bào)錯(cuò)。

再看一下配置中 log 項(xiàng)配置對(duì)不對(duì)

    'log'                    => [
        // 日志記錄方式,內(nèi)置 file socket 支持?jǐn)U展
        'type'  => 'File',
        // 日志保存目錄
        'path'  => LOG_PATH,
        // 日志記錄級(jí)別
        'level' => ['error'],
    ],
入她眼 回答

想知道有沒(méi)有執(zhí)行
先判斷有沒(méi)有
沒(méi)有就set
有就直接返回

獨(dú)白 回答

問(wèn)題一: 暫時(shí)沒(méi)想到。

問(wèn)題二:

 let tdStyle = {
      textAlign: 'center',
      fontSize: 20,
      height: 20,
      color: 'rgba(255,255,255,0.6)',
    };
    let tdStyleOdd = {
      ...tdStyle,
      backgroundColor: backgroundColor[1],
    };
    let tdStyleEven = {
      ...tdStyle,
      backgroundColor: backgroundColor[0],
    };
玄鳥(niǎo) 回答

使用 clean-webpack-plugin 可以清空 dist 目錄下的文件。

安裝

cnpm install clean-webpack-plugin --save-dev

配置

箭頭處是你需要配置的內(nèi)容

  const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
->const CleanWebpackPlugin = require('clean-webpack-plugin' );

  module.exports = {
    entry: {
      app: './src/index.js',
      print: './src/print.js'
    },
    plugins: [
->    new CleanWebpackPlugin(['dist']),
      new HtmlWebpackPlugin({
        title: 'Output Management'
      })
    ],
    output: {
      filename: '[name].bundle.js',
      path: path.resolve(__dirname, 'dist')
    }
  };

文檔

點(diǎn)擊查看文檔詳細(xì)內(nèi)容 webpack文檔--文件夾清理

尛曖昧 回答

可以按需加載,或者直接吧你需要的直接copy出來(lái),放到自己的組件里...

尋仙 回答

alibaba/dubbo: Dubbo is a high-performance, java based, open source RPC framework: https://github.com/alibaba/dubbo

是一個(gè)RPC框架,實(shí)現(xiàn)分布式系統(tǒng)中不同節(jié)點(diǎn)的通信,但是節(jié)點(diǎn)互相怎么找到彼此呢?這個(gè)就靠ZooKeeper了

笨尐豬 回答
  1. 使用gd把二維碼部分截取出來(lái),坐標(biāo)可以量

clipboard.png

  1. gd新建一張空白圖,尺寸比二維碼高。下面放文字
使勁操 回答

數(shù)據(jù)庫(kù)不會(huì)是只讀的吧,你要是打到j(luò)ar包里,怎么寫(xiě)呢?建議把數(shù)據(jù)庫(kù)單放一個(gè)位置吧

失魂人 回答

我的理解是每個(gè)用戶想填的數(shù)據(jù)是不一樣的,但是每個(gè)人要填的數(shù)據(jù)的校驗(yàn)規(guī)則肯定是固定的,無(wú)非就是每個(gè)測(cè)試人員想用自己的數(shù)據(jù)來(lái)測(cè)試,但是又不想從頭到尾的輸入,那么也不需要用正則,每個(gè)用戶都保存一份自己想用的數(shù)據(jù),每次都自動(dòng)填充到表單里就好了,這樣的話實(shí)現(xiàn)方案有幾種:
1.你說(shuō)的用chrome插件,只不過(guò)把根據(jù)正則自動(dòng)生成改成每個(gè)人員自己寫(xiě)死存到chrome插件里,就相當(dāng)于這個(gè)插件提供一個(gè)配置界面,用戶可以手動(dòng)更改需要自動(dòng)填充到表單里的數(shù)據(jù)
2.把這些數(shù)據(jù)存到localStorage或者cookie里去,頁(yè)面進(jìn)來(lái)的時(shí)候在測(cè)試環(huán)境可以默認(rèn)先從cookie或者localstorage里取。取不到就為空,但是這樣的話會(huì)需要改動(dòng)代碼的邏輯。加了一些不是處理業(yè)務(wù)需求的代碼

個(gè)人理解

很簡(jiǎn)單,給按鈕 add 個(gè) event listener 就好。

詆毀你 回答

推薦:CSS(3)多種方法實(shí)現(xiàn)水平垂直居中效果

看看常見(jiàn)的垂直居中方法,這個(gè)也是面試經(jīng)常會(huì)問(wèn)的知識(shí)點(diǎn)!

舊螢火 回答

我也遇到這個(gè)問(wèn)題了,大神解決了嗎?

厭遇 回答

你請(qǐng)求的是jsonp類型,期望中返回的應(yīng)該是被 callback 包圍的一段函數(shù)調(diào)用語(yǔ)句,如 callback({"status":1,"data":0}),你這個(gè)直接返回的是json,自然會(huì)提醒類型錯(cuò)誤

Jsonp原理:
首先在客戶端注冊(cè)一個(gè)callback, 然后把callback的名字傳給服務(wù)器。此時(shí),服務(wù)器先生成 json 數(shù)據(jù)。
然后以 javascript語(yǔ)法的方式,生成一個(gè)function , function 名字就是傳遞上來(lái)的參數(shù) jsonp. 最后將json 數(shù)據(jù)直接以入?yún)⒌姆绞?,放置?function 中,這樣就生成了一段 js 語(yǔ)法的文檔,返回給客戶端??蛻舳藶g覽器,解析script標(biāo)簽,并執(zhí)行返回的 javascript 文檔,此時(shí)數(shù)據(jù)作為參數(shù),傳入到了客戶端預(yù)先定義好的 callback 函數(shù)里.(動(dòng)態(tài)執(zhí)行回調(diào)函數(shù))

參考 https://blog.helloarron.com/2...

初念 回答

你的問(wèn)題描述不清楚
這里有個(gè)鏈接你看看能解決你的問(wèn)題嗎 http://blog.csdn.net/aerchi/a...

笑浮塵 回答

目錄結(jié)構(gòu)

目錄結(jié)構(gòu)

webpack.config.js

var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  entry: __dirname + "/main.js",
  output: {
    path: __dirname + "/dist",
    filename: "[name].js"
  },
  devServer: {
    historyApiFallback: true,
    inline: true,
    hot: true,
    port: 8778
  },
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ["style-loader", "css-loader"]
      },
      {
        test: /\.less$/,
        use: ["style-loader", "css-loader", "less-loader"]
      },
      {
        test: /\.(js|jsx)$/,
        exclude: /node_modules/,
        use: ["babel-loader"]
      }
    ]
  },
  resolve: {
    extensions: [".js", ".jsx", ".css", ".less"]
  },
  plugins:[
    new HtmlWebpackPlugin({
      template: "index.html",
      inject: "body"
    })
  ]
};

package.json

{
  "name": "react-project",
  "version": "1.0.0",
  "description": "A React.js Project",
  "main": "main.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "webpack",
    "dev": "webpack-dev-server --inline --hot --progress"
  },
  "author": "Gary",
  "license": "ISC",
  "dependencies": {
    "react": "^15.5.4",
    "react-dom": "^15.5.4",
    "react-router-dom": "^4.1.1"
  },
  "devDependencies": {
    "babel-core": "^6.24.1",
    "babel-loader": "^6.4.1",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-0": "^6.24.1",
    "css-loader": "^0.28.0",
    "html-webpack-plugin": "^2.28.0",
    "less": "^2.7.2",
    "less-loader": "^4.0.3",
    "style-loader": "^0.16.1",
    "webpack": "^2.4.1",
    "webpack-dev-server": "^2.4.2"
  }
}

main.js

import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter as Router, Route, Link} from 'react-router-dom';
import Index from './src/components/index.jsx';
import Other from './src/components/other.jsx';

class Main extends React.Component {
  render() {
    return (
      <Router>
        <div>
          <ul>
            <li><Link to="/">主頁(yè)</Link></li>
            <li><Link to="other">其他頁(yè)面</Link></li>
          </ul>

            <Route exact path="/" component={Index} />
            <Route path="/other" component={Other} />
        </div>
      </Router>
    );
  }
}

ReactDOM.render(
  <Main/>,
  document.getElementById("app")
);

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>A React.js Project</title>
</head>
<body>
<div id="app"></div>
</body>
</html>

.babelrc

{
  "presets": ["es2015", "react", "stage-0"]
}

index.jsx(其他頁(yè)面或組件類似)

import React from 'react';
class Index extends React.Component {
  render() {
    return (
      <div>React 項(xiàng)目主頁(yè)</div>
    );
  }
}

export default Index;

把你想要寫(xiě)的代碼都放到src目錄下就可以啦,其他的自己琢磨。這是我自己構(gòu)建的應(yīng)該算是比較簡(jiǎn)單的環(huán)境了。
如果想要看react項(xiàng)目的,去看node_modules里react-scripts里的相關(guān)文件。