我是 Kotlin 的初学者,实际上我正在 Kotlin 中做一个 Andro\xc3\xafd 应用程序。我必须初始化一些值未知的属性(实际上不是,但从现在开始很难定义),所以我想像在 TypeScript 中一样,例如:public startDate: any;这意味着 startDate 的类型可以是任何类型(它不是不安全,但无论如何它都有助于获得价值,而不是考虑发生的事情)。
有没有办法在 Kotlin 中做到这一点?\n我尝试了“?” 或 List<*> 或参数中的 *,但它不是这样工作的。
\n\n谢谢阅读!
\n我在这里的 CKEDITOR 的 Github 页面上问过我的问题,我被要求在这里问:https : //github.com/ckeditor/ckeditor4/issues/3555
我正在与 CKEDITOR 合作使内容可编辑。当我点击一个按钮时,编辑器在引导模式中打开,这可能是它不起作用的原因。这里的问题是我无法将注意力集中在在编辑器中插入内容所需的字段上。
两个截图来理解问题:https : //imgur.com/BB8RDfB - 当我不能在输入中写任何东西时,没有焦点
https://imgur.com/BufQ2y2 - 当我尝试验证时,因为没有写入任何内容
这是我的 CKEditor 配置:
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
config.uiColor = '#AADC6E';
config.extraPlugins = 'ckawesome';
config.fontawesomePath = 'C:/wamp64/www/landing/fontawesome-free-5.10.2-web/css/fontawesome.css';
config.extraPlugins = 'fontawesome';
config.allowedContent = true;
CKEDITOR.dtd.$removeEmpty['i'] = false;
CKEDITOR.dtd.$removeEmpty['span'] …Run Code Online (Sandbox Code Playgroud)