会员
商店
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Peretsoft
博客园
首页
新随笔
联系
订阅
管理
01 2023 档案
第十二课:类中创建方法
摘要:在类中创建一个方法 方式一:在类内写方法 function Product(pno,pname,price){ //属性 this.pno=pno; this.pname=pname; this.price=price; //方法 this.getPrice=function(){ return t
阅读全文
posted @
2023-01-30 17:08
灰色小五
阅读(113)
评论(0)
推荐(0)
编辑
公告
点击右上角即可分享