看板 [ Ajax ]
討論串[問題] json function prototype
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者icydream (巧虎)時間9年前 (2015/12/24 19:46), 編輯資訊
0
0
0
內容預覽:
建議可改成. var Item = {. list: function() {. this.constructor.prototype.sayHello = function() {console.log('Hello')};. }. };. var a = new Item.list();. a.

推噓2(2推 0噓 9→)留言11則,0人參與, 最新作者qas612820704 (Lego)時間9年前 (2015/12/20 01:34), 編輯資訊
0
0
0
內容預覽:
var Item = {. list: function() {. var obj = function() {};. obj.prototype.sayHello = function() {console.log('Hello')};. return obj;. },. };. var a =
(還有42個字)
首頁
上一頁
1
下一頁
尾頁