全部导入到ES6中,但不导入到对象内部 [英] Import all in ES6, but not inside an object

查看:69
本文介绍了全部导入到ES6中,但不导入到对象内部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

总有没有写这个吗?

import {replace_in_mtstr, tot_width, rationalize, eval_expression, ascii_to_latex, latex_to_ascii, getIndicesOf, cleanIndices, change_sign, exponentiate, multiply_grouped_nodes, flip_fraction, add_brackets, are_of_type, any_of_type, have_same_ancestors, have_same_type, have_same_text, have_single_factor, have_same_denom, are_same_terms, get_prev, get_next, get_all_next, has_op, parse_mtstr, parse_poly, prepare} from "./functions";

在ES6中是

?这些都是在不同文件中导出的所有功能.我知道的关闭值是import * as object from 'file';.但是,我想直接使用功能,而不是在对象内部.在ES6中有可能吗?

in ES6? These are all the exported functions in a different file. The closes thing I know is import * as object from 'file';. However, I want to have the functions available directly, not inside an object. Is this possible in ES6?

推荐答案

如注释所示,这是不可能的.

As the comments indicate, this is not possible.

这篇关于全部导入到ES6中,但不导入到对象内部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆