avoid using JavaScript keyword as property name: “for“ Raw expression

今天在下拉选框时,为了方便没有给@change定义函数名,直接在函数内做计算,用的for in循环,好死不死报错了,最后在报错中看到!报错的代码,是不是很疑惑语法没啥问题
这里是倒错的原因,不能出现for字样的关键字
其实我也懵逼,明明之前就写过类似的,为啥他不报错呢???????,难道是(金莲偶遇西门大官人了?),

翻了很久找到之前的代码好像没啥毛病???

难道真的是金莲心有所属???,带着疑问我把代码改成了
这个就是修改后代码,这他妈就不报错了?
((颜值即正义!!!!)没发货喽…) 具体原因我也没搞定,好像是不能在首位出现for的关键字,用分号隔开就没问题,或者在for之前做些其他的操作也行,重要的是不能吧for放到第一位

、、、、、、、页面仔!记录美好bug、、、、、、、

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The second edition of a bestselling textbook, Using R for Introductory Statistics guides students through the basics of R, helping them overcome the sometimes steep learning curve. The author does this by breaking the material down into small, task-oriented steps. The second edition maintains the features that made the first edition so popular, while updating data, examples, and changes to R in line with the current version. See What’s New in the Second Edition: Increased emphasis on more idiomatic R provides a grounding in the functionality of base R. Discussions of the use of RStudio helps new R users avoid as many pitfalls as possible. Use of knitr package makes code easier to read and therefore easier to reason about. Additional information on computer-intensive approaches motivates the traditional approach. Updated examples and data make the information current and topical. The book has an accompanying package, UsingR, available from CRAN, R’s repository of user-contributed packages. The package contains the data sets mentioned in the text (data(package=”UsingR”)), answers to selected problems (answers()), a few demonstrations (demo()), the errata (errata()), and sample code from the text. The topics of this text line up closely with traditional teaching progression; however, the book also highlights computer-intensive approaches to motivate the more traditional approach. The authors emphasize realistic data and examples and rely on visualization techniques to gather insight. They introduce statistics and R seamlessly, giving students the tools they need to use R and the information they need to navigate the sometimes complex world of statistical computing.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值