---
title: "js function "
author: "congdepeng"
date: "2010-07-15T16:37:41Z"
tags: []
categories: ["Web前端"]
slug: "js-function"
draft: false
lastmod: "2010-07-15T16:37:41Z"
id: 713636
url: "https://congdepeng.iteye.com/blog/713636"
---

```
       var fun = function() {
            alert(this)
        };

        fun();

        var funx = new fun();

        var funxx = {};
        funxx.__proto__ = fun.prototype;
        fun.call(funxx);
```