Mini Program
  • Mini Program
  • Mini Game
  • Official Accounts
  • Open Platform
  • Intelligent Dialogue
Development
Introduction
Design
Operation
Data
Security
Community
School
取消
    Get More
    Find More >
    • Guide
    • Framework
    • Components
    • API
    • Server Side
    • Capabilities
      • Industry
      • Commercial
      • Platform Capabilities
      • City Services
      • Extended
    • Weixin DevTools
    • Cloud Service
      • Cloud Base
    • Update History
    Development
    Development
    Introduction
    Design
    Operation
    Data
    Security
    中文
    EN
    取消
  • Framework
    • Mini Program configuration
      • Global configuration
      • Page configuration
      • sitemap Configuration
    • Scene value
    • Frame interface
      • Mini Program App
        • App
        • getApp
      • page
        • Page
        • getCurrentPages
      • Custom component
        • Component
        • Behavior
      • modularity
        • require
        • module
        • exports
        • requirePlugin
        • requireMiniProgram
      • Basic function
        • console
          • console.debug
          • console.error
          • console.group
          • console.groupEnd
          • console.info
          • console.log
          • console.warn
        • Timer
          • setTimeout
          • clearTimeout
          • setInterval
          • clearInterval
    • WXML Grammatical reference
      • Data binding
      • List rendering
      • Conditional Rendering
      • template
      • reference
    • WXS Grammatical reference
      • Modular
      • Notes
      • operator
      • sentence
      • Data type
      • Base class library

    # WXS Syntax Reference

    WXS (WeiXin Script) is a scripting language for Mini Programs. Combined with WXML, it can be used to construct the page structure.

    WXS is a different language from JavaScript. It has its own syntax, which is different from that of JavaScript.

    • WXS Modules
    • Variables
    • Annotations
    • Operators
    • Statements
    • Data Types
    • Base Library
    The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.
    • 关于腾讯
    • 文档中心
    • 辟谣中心
    • 客服中心

    Copyright © 2012-2025 Tencent. All Rights Reserved.

    反馈