Home
last modified time | relevance | path

Searched refs:testClass (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/quick-start/
H A Darkts-state-management-best-practices.md24 @Prop testClass: MyClass; // @Prop 装饰状态变量会深拷贝
27 Text(`PropChild testNum ${this.testClass.num}`)
34 @State testClass: MyClass[] = [new MyClass(1)];
38 Text(`Parent testNum ${this.testClass[0].num}`)
40 this.testClass[0].num += 1;
44 PropChild({ testClass: this.testClass[0] })
69 Text(`PropChild testNum ${this.testClass.num}`)
76 @State testClass: MyClass[] = [new MyClass(1)];
80 Text(`Parent testNum ${this.testClass[0].num}`)
82 this.testClass[0].num += 1;
[all …]
/ohos5.0/docs/zh-cn/application-dev/web/
H A Dweb-in-page-app-function-invoking.md20 class testClass {
34 @State testObj: testClass = new testClass();
75 class testClass {
92 @State testObj: testClass = new testClass();
240 @State testObj: testClass = new testClass();
319 @State testObj: testClass = new testClass();
392 @State testObj: testClass = new testClass();
465 @State testObj: testClass = new testClass();
577 @State testObj: testClass = new testClass();
657 @State testObj: testClass = new testClass();
[all …]
/ohos5.0/docs/en/application-dev/web/
H A Dweb-in-page-app-function-invoking.md22 class testClass {
36 @State testObj: testClass = new testClass();
77 class testClass {
94 @State testObj: testClass = new testClass();
242 @State testObj: testClass = new testClass();
321 @State testObj: testClass = new testClass();
394 @State testObj: testClass = new testClass();
467 @State testObj: testClass = new testClass();
579 @State testObj: testClass = new testClass();
659 @State testObj: testClass = new testClass();
[all …]
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/test/
H A Dtest_concurrent.cpp520 napi_value testClass = nullptr; variable
528 }, nullptr, 0, nullptr, &testClass); in __anon35c8744e0602()
531 ASSERT_CHECK_CALL(napi_new_instance(env, testClass, 0, nullptr, &testInstance));
532 napi_set_named_property(env, testInstance, "constructor", testClass);
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_sendable_napi.cpp689 napi_value testClass = nullptr; variable
697 nullptr, 0, nullptr, nullptr, &testClass);
701 res = napi_new_instance(env, testClass, 0, nullptr, &instanceValue);
H A Dtest_napi.cpp1705 napi_value testClass = nullptr; variable
1714 nullptr, 0, nullptr, &testClass);
1717 napi_new_instance(env, testClass, 0, nullptr, &instanceValue);
6778 napi_value testClass = nullptr; variable
6787 nullptr, 0, nullptr, nullptr, &testClass);
6794 napi_value testClass = nullptr; variable
6797 nullptr, nullptr, 0, nullptr, nullptr, &testClass);
6804 napi_value testClass = nullptr; variable
6813 nullptr, 1, nullptr, nullptr, &testClass);
6820 napi_value* testClass = nullptr; variable
[all …]
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Djsvm-data-types-interfaces.md1546 JSVM_Value testClass = nullptr;
1555 OH_JSVM_DefineClass(env, "TestClass", JSVM_AUTO_LENGTH, &param1, 0, nullptr, &testClass);
1558 OH_JSVM_NewInstance(env, testClass, 0, nullptr, &instanceValue);
/ohos5.0/docs/en/application-dev/napi/
H A Djsvm-data-types-interfaces.md1546 JSVM_Value testClass = nullptr;
1555 OH_JSVM_DefineClass(env, "TestClass", JSVM_AUTO_LENGTH, &param1, 0, nullptr, &testClass);
1558 OH_JSVM_NewInstance(env, testClass, 0, nullptr, &instanceValue);