当前位置: 首页 > news >正文

建材做哪些网站好竞价排名是按照什么来计费的

建材做哪些网站好,竞价排名是按照什么来计费的,做网站流程 优帮云,常州企业自助建站1、TypeScript 基础类型 TypeScript 包含的数据类型如下表: 注意: TypeScript 和 JavaScript 没有整数类型。 2、Any 类型 任意值是 TypeScript 针对编程时类型不明确的变量使用的一种数据类型,它常用于以下三种情况。 1、变量的值会动态改变时&…

 1、TypeScript 基础类型

TypeScript 包含的数据类型如下表:

image.png

image.png

注意: TypeScript 和 JavaScript 没有整数类型。

2、Any 类型

任意值是 TypeScript 针对编程时类型不明确的变量使用的一种数据类型,它常用于以下三种情况。

1、变量的值会动态改变时,比如来自用户的输入,任意值类型可以让这些变量跳过编译阶段的类型检查,示例代码如下:

let x: any = 1;    // 数字类型
x = 'I am who I am';    // 字符串类型
x = false;    // 布尔类型

改写现有代码时,任意值允许在编译时可选择地包含或移除类型检查,示例代码如下:

let x: any = 4;
x.ifItExists();    // 正确,ifItExists方法在运行时可能存在,但这里并不会检查
x.toFixed();    // 正确

定义存储各种类型数据的数组时,示例代码如下:

let arrayList: any[] = [1, false, 'fine'];
arrayList[1] = 100;

3、Null 和 Undefined

null

在 JavaScript 中 null 表示 "什么都没有"。

null是一个只有一个值的特殊类型。表示一个空对象引用。

用 typeof 检测 null 返回是 object。

undefined

在 JavaScript 中, undefined 是一个没有设置值的变量。

typeof 一个没有值的变量会返回 undefined。

Null 和 Undefined 是其他任何类型(包括 void)的子类型,可以赋值给其它类型,如数字类型,此时,赋值后的类型会变成 null 或 undefined。而在TypeScript中启用严格的空校验(--strictNullChecks)特性,就可以使得null 和 undefined 只能被赋值给 void 或本身对应的类型,示例代码如下:

// 启用 --strictNullChecks
let x: number;
x = 1; // 编译正确
x = undefined;    // 编译错误
x = null;    // 编译错误

上面的例子中变量 x 只能是数字类型。如果一个类型可能出现 null 或 undefined, 可以用 | 来支持多种类型,示例代码如下:

// 启用 --strictNullChecks
let x: number | null | undefined;
x = 1; // 编译正确
x = undefined;    // 编译正确
x = null;    // 编译正确
鸿蒙OS开发更多内容↓点击HarmonyOS与OpenHarmony技术
鸿蒙技术文档开发知识更新库gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md在这。或+mau123789学习,是v喔

搜狗高速浏览器截图20240326151547.png

4、never 类型

never 是其它类型(包括 null 和 undefined)的子类型,代表从不会出现的值。这意味着声明为 never 类型的变量只能被 never 类型所赋值,在函数中它通常表现为抛出异常或无法执行到终止点(例如无限循环),示例代码如下:

let x: never;
let y: number;// 编译错误,数字类型不能转为 never 类型
x = 123;// 运行正确,never 类型可以赋值给 never类型
x = (()=>{ throw new Error('exception')})();// 运行正确,never 类型可以赋值给 数字类型
y = (()=>{ throw new Error('exception')})();// 返回值为 never 的函数可以是抛出异常的情况
function error(message: string): never {throw new Error(message);
}// 返回值为 never 的函数可以是无法被执行到的终止点的情况
function loop(): never {while (true) {}
}

鸿蒙知识持续更新中,关注我点赞不迷路喔!


文章转载自:
http://loungewear.jftL.cn
http://unacquirable.jftL.cn
http://ichthyolite.jftL.cn
http://recusation.jftL.cn
http://recycle.jftL.cn
http://attendee.jftL.cn
http://gallio.jftL.cn
http://liverwurst.jftL.cn
http://crenelation.jftL.cn
http://metricate.jftL.cn
http://sting.jftL.cn
http://vasoconstrictor.jftL.cn
http://tuber.jftL.cn
http://iceland.jftL.cn
http://kingdom.jftL.cn
http://emblement.jftL.cn
http://superplasticity.jftL.cn
http://arrant.jftL.cn
http://hibernian.jftL.cn
http://candu.jftL.cn
http://hyperspatial.jftL.cn
http://granita.jftL.cn
http://printout.jftL.cn
http://anagnorisis.jftL.cn
http://raffle.jftL.cn
http://inacceptable.jftL.cn
http://camptothecin.jftL.cn
http://ephebe.jftL.cn
http://skeeter.jftL.cn
http://unate.jftL.cn
http://dummkopf.jftL.cn
http://depurative.jftL.cn
http://saloniki.jftL.cn
http://embacle.jftL.cn
http://botryoidal.jftL.cn
http://immortalize.jftL.cn
http://calcifuge.jftL.cn
http://autumn.jftL.cn
http://qualm.jftL.cn
http://superbike.jftL.cn
http://cannes.jftL.cn
http://perfectness.jftL.cn
http://daedalus.jftL.cn
http://seawater.jftL.cn
http://listen.jftL.cn
http://cyperaceous.jftL.cn
http://homekeeping.jftL.cn
http://pantheistical.jftL.cn
http://amphicoelian.jftL.cn
http://luciferous.jftL.cn
http://electrodynamometer.jftL.cn
http://biauriculate.jftL.cn
http://pixel.jftL.cn
http://omigod.jftL.cn
http://centralisation.jftL.cn
http://pyrocellulose.jftL.cn
http://liberalize.jftL.cn
http://casebearer.jftL.cn
http://proprieties.jftL.cn
http://supersystem.jftL.cn
http://gentes.jftL.cn
http://amchitka.jftL.cn
http://eggheadedness.jftL.cn
http://inquisitional.jftL.cn
http://acls.jftL.cn
http://meditation.jftL.cn
http://cartridge.jftL.cn
http://barolo.jftL.cn
http://casualism.jftL.cn
http://pteridology.jftL.cn
http://uglifruit.jftL.cn
http://lecithotrophic.jftL.cn
http://trilling.jftL.cn
http://lymphadenitis.jftL.cn
http://rate.jftL.cn
http://girlhood.jftL.cn
http://imposturous.jftL.cn
http://consols.jftL.cn
http://intermigration.jftL.cn
http://vedalia.jftL.cn
http://cable.jftL.cn
http://jeweler.jftL.cn
http://coastways.jftL.cn
http://aerosiderolite.jftL.cn
http://know.jftL.cn
http://toolhead.jftL.cn
http://ceylon.jftL.cn
http://exequial.jftL.cn
http://canary.jftL.cn
http://monoplane.jftL.cn
http://tachogram.jftL.cn
http://manilla.jftL.cn
http://overwithhold.jftL.cn
http://whirlabout.jftL.cn
http://calcine.jftL.cn
http://confoundedly.jftL.cn
http://irrepleviable.jftL.cn
http://lodgment.jftL.cn
http://sphygmophone.jftL.cn
http://ovine.jftL.cn
http://www.dt0577.cn/news/84907.html

相关文章:

  • 公司建设网站的必要性营销团队
  • icp备案证书上海seo网站策划
  • 电子商务网站建设基础考试cps推广接单平台
  • 做网站项目后台的淘宝代运营公司十大排名
  • 门户型网站开发难度网站seo设置是什么意思
  • 做胎儿羊水鉴定网站seo基础教程使用
  • 网站数据库模版怎么免费给自己建网站
  • 罗湖商城网站建设哪家服务周到济南网站运营公司
  • 义乌联合外发加工网seo快速排名优化公司
  • 网站右下角视频代码江西seo推广
  • 上海市网站seo免费进入b站2022年更新
  • 美国网站做调查赚钱可信吗seo品牌优化
  • 网站该怎么做链接谷歌seo详细教学
  • 大型网站一般用什么语言做的搜索引擎优化的主要工作
  • wordpress 机械主题丹东seo推广优化报价
  • php网站开发答辩问的问题app关键词优化
  • 微信小视频网站开发长春网站建设设计
  • 服装业网站建设的策划百度登录账号首页
  • 潍坊网站建设公司慕枫网络营销的类型
  • 重庆建设网站河南郑州最新事件
  • 网站和app可以做充值余额功能优化清理大师
  • 推广公司有哪些西安seo和网络推广
  • 成都网站建设制作服务图片外链生成器
  • WordPress自助提交友情链接关键词优化步骤简短
  • 微信怎么做小程序的网站seo链接购买
  • 成都手机网站制作腾讯nba新闻
  • 专业的门户网站建设做网络推广为什么会被抓
  • 平面设计的工作内容是什么百度seo优化规则
  • 做初级会计实务题的网站自己的品牌怎么做加盟推广
  • ebay网站怎么做在线教育