小编Pre*_*ton的帖子

VBScript函数名称最大长度

我想知道Classic ASP(VBScript)中函数名的最大允许长度是多少.

vbscript asp-classic

4
推荐指数
1
解决办法
1638
查看次数

IE11 中的打字稿和承诺

我正在使用 Webpack 编译 Typescript (v2.4.2)。一切都编译正常,但是当我在 IE11 中运行我的代码时,我收到以下错误:'Promise' 未定义。

这是我的 tsconfig:

{
    "compilerOptions": {
        "outDir": "./wwwroot/js",
        "sourceMap": true,
        "allowJs": true,
        "lib": [
            "dom",
            "es5",
            "scripthost",
            "es2015.iterable"
        ],
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "skipDefaultLibCheck": true,
        "types": [ "es6-promise" ]
    },
    "include": [
        "./Ts/**/*"
    ]
}
Run Code Online (Sandbox Code Playgroud)

这是我的 webpack 配置:

const path = require('path');
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

module.exports = {
    entry: {
        main: "./Ts/main.ts"
    },
    output: {
        filename: "[name].js",
        path: path.resolve(__dirname, "wwwroot/js")
    },
    devtool: "source-map",
    resolve: {
        extensions: …
Run Code Online (Sandbox Code Playgroud)

fetch promise typescript internet-explorer-11

2
推荐指数
1
解决办法
4607
查看次数