ITPub博客

首页 > IT职业 > IT职场 > JS小知识

JS小知识

IT职场 作者:yellowduck007 时间:2021-09-09 09:47:04 0 删除 编辑

输出语句####

1.document.write( " ");```####传统的HTML文档顺序是####```html
document- >html- >(head,body)```####一个浏览器窗口中的DOM顺序是####```html
window- >(navigator,screen,history,location,document)```####得到表单中元素的名称和值####```html
document.getElementById( "表单中元素的ID號 ").name(或value) ```####一个小写转大写的JS####```html
 document.getElementById( "output ").value =document.getElementById( "input ").value.toUpperCase();```####JS中的值类型####```html
String,Number,Boolean,Null,Object,Function```####JS中的字符型转换成数值型####```html
parseInt(),parseFloat()```####JS中的数字转换成字符型####( " " 变量)
***####JS中的取字符串长度是####(length).
***####JS中的字符与字符相连接使用 號####.
***####.JS中的比较操作符有####==等于,!=不等于, >, >=, <. array function>



作者:贞贞姐
链接:https://www.jianshu.com/p/8932dc20ec78


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2611/viewspace-2812268/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-16

  • 博文量
    88
  • 访问量
    983