src

package
v1.109.1184 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JSString *cef.JSString
	JSInt    *cef.JSInteger
	JSBool   *cef.JSBoolean
	JSDouble *cef.JSDouble
)

Functions

func JSFunc

func JSFunc(p1 string) string

Types

type StructVarDemo

type StructVarDemo struct {
	StringField string
	IntField    int32
	BoolField   bool
	FloatField  float64
	// contains filtered or unexported fields
}

定义结构类型的变量 结构类型将属性和函数导出为JS可调用类型 大写字母开头

var JSStructVarDemo *StructVarDemo

func (*StructVarDemo) FuncMaxParam

func (m *StructVarDemo) FuncMaxParam(p1, p2, p3, p4, p5, p6, p7, p8, p9 string)

定义导出函数参数最多为9个

func (*StructVarDemo) IntValue

func (m *StructVarDemo) IntValue(intParam int32) int32

结构类型的函数导出

func (*StructVarDemo) StringValue

func (m *StructVarDemo) StringValue(p0 string) string

结构类型的函数导出

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL