javascript - 尝试在javascript中生成消息时由于某种原因在我的代码中解析错误
问题描述
我正在尝试生成一条随机消息,但不知何故在我的代码中有一个解析错误,它说 void 是未定义的,即使它不需要定义,它称之为未定义
var a =1
while(a=1){
function alert(message?: any): void}
i have tried using
GetFileDump=alert(GetFile AnyMessage)
//but that does not work either
//plz tell me what to do
解决方案
尝试
var a = 1;
while (a === 1) { // a = 1 is not the same as a === 1
alert("message");
a = 0;
}
推荐阅读
- python-2.7 - Cython 扩展与 Python2 不兼容。
- android - ListView to RecyclerView conversion, problem in converting get View method
- jsf-2 - JSF and Ajax update ui:repeat not working without loading the data from database
- angularjs - 根据条件下拉默认值选择
- html - 自动将 iFrame 高度设置为内容的高度,仅 HTML5 或 CSS
- if-statement - 如何通过 c# 或 SQL 代码检查 SQL Server 表中的所有先前值
- dart - 在构建 Home(dirty, state: _HomeState#3752d): Invalid argument(s) 时引发了以下 ArgumentError
- javascript - 使用实例模式时遇到问题
- python - 如何使用递归绘制矩形以在 pygame 中制作表格?
- javascript - “必需”验证在 javascript 中不起作用