ICode9

精准搜索请尝试: 精确搜索
  • ES6基础知识——设置对象的prototype Object.setPrototypeOf()2019-06-27 08:50:16

    Object.setPrototypeOf()可以在创建对象以后去改变对象的prototype   例子:这里定义了两个对象: let breakfast = {  getDrink(){    return 'tea'  }}let dinner ={  getDrink(){    return 'bear'  }}    下面使用Object.create()方法创建一个基于breakfast

  • C# 字符串转枚举2019-04-23 22:47:41

    private void btnStart_Click(object sender, EventArgs e){ string testText = "Sunday"; Days2 d = (Days2)Enum.Parse(typeof(Days2), testText); MessageBox.Show(d.ToString());} enum Days2{ Sunday, Monday, Tuesday, Wednesday, Th

  • July 08th. 2018, Week 28th. Sunday2019-03-30 18:47:40

    Make each day your masterpiece. 让生命中的每一天都成为杰作。 From John Wooden. Try to focus on what we are doing right now and try the best of our abilities to make the results as perfect as possible. And we must recogize that nothing can be done about what ha

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有