无法找到这个简单问题的答案。
var fun1 = function() {};
fun1.prototype
指向哪里?请注意,我还没有设置fun1.prototype = someObject
或someObject.constructor = fun1
。那么变量fun1.prototype
在哪里默认引用?
---编辑1 ---
知道了:如果您创建新函数fun1
,Javascript实现将在{ constructor: fun1 }
下创建一个新对象fun1.prototype
。
我在想它可能指向一些预定义的对象,如Object.prototype
。
答案 0 :(得分:1)
它指的是具有指向函数的foreach (var entity in context.LigneCde)
context.LigneCde.Remove(entity);
context.SaveChanges();
属性的对象。像
context.ExecuteStoreCommand("DBCC CHECKIDENT('BibContents',RESEED,1);");