Skip to content

函数声明应该用var,可以重复声明 #7

@axetroy

Description

@axetroy

if (!scope.$const(func_name, func)) {

function test(){}

function test(){}

函数声明是可以重复的,应该使用scope.$var去声明

scope.$var这里要改

if (!$var) {

var是可以重复声明的,无论如何都应该返回true,新变量把旧变量覆盖掉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions