当前位置:首页 > 文章列表 > Golang > Go问答 > 对包含命名空间 xmlns:wcm 和 xmlns:xsi 的 XML 进行正确编组和解组

对包含命名空间 xmlns:wcm 和 xmlns:xsi 的 XML 进行正确编组和解组

来源:stackoverflow 2024-02-05 21:25:10 0浏览 收藏

今日不肯埋头,明日何以抬头!每日一句努力自己的话哈哈~哈喽,今天我将给大家带来一篇《对包含命名空间 xmlns:wcm 和 xmlns:xsi 的 XML 进行正确编组和解组》,主要内容是讲解等等,感兴趣的朋友可以收藏或者有更好的建议在评论提出,我都会认真看的!大家一起进步,一起学习!

问题内容

我正在尝试处理 windows autounattend.xml 文件的读取和写入,以便创建和修改它们。我无法正确封送和解封 xmlns:wcmxmlns:xsi 属性。

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowspe">
        <component name="microsoft-windows-international-core-winpe" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <setupuilanguage>
                <uilanguage>en-us</uilanguage>
            </setupuilanguage>
            <inputlocale>0409:00000409</inputlocale>
            <systemlocale>en-us</systemlocale>
            <uilanguage>en-us</uilanguage>
            <uilanguagefallback>en-us</uilanguagefallback>
            <userlocale>en-us</userlocale>
        </component>
        <component name="microsoft-windows-setup" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <diskconfiguration>
                <disk wcm:action="add">
                    <diskid>0</diskid>
                    <willwipedisk>true</willwipedisk>
                    <createpartitions>
                        <!-- windows re tools partition -->
                        <createpartition wcm:action="add">
                            <order>1</order>
                            <type>primary</type>
                            <size>300</size>
                        </createpartition>
                        <!-- system partition (esp) -->
                        <createpartition wcm:action="add">
                            <order>2</order>
                            <type>efi</type>
                            <size>100</size>
                        </createpartition>
                        <!-- microsoft reserved partition (msr) -->
                        <createpartition wcm:action="add">
                            <order>3</order>
                            <type>msr</type>
                            <size>128</size>
                        </createpartition>
                        <!-- windows partition -->
                        <createpartition wcm:action="add">
                            <order>4</order>
                            <type>primary</type>
                            <extend>true</extend>
                        </createpartition>
                    </createpartitions>
                    <modifypartitions>
                        <modifypartition wcm:action="add">
                            <order>1</order>
                            <partitionid>1</partitionid>
                            <label>winre</label>
                            <format>ntfs</format>
                            <typeid>de94bba4-06d1-4d40-a16a-bfd50179d6ac</typeid>
                        </modifypartition>
                        <modifypartition wcm:action="add">
                            <order>2</order>
                            <partitionid>2</partitionid>
                            <label>system</label>
                            <format>fat32</format>
                        </modifypartition>
                        <modifypartition wcm:action="add">
                            <order>3</order>
                            <partitionid>3</partitionid>
                        </modifypartition>
                        <modifypartition wcm:action="add">
                            <order>4</order>
                            <partitionid>4</partitionid>
                            <label>windows</label>
                            <letter>c</letter>
                            <format>ntfs</format>
                        </modifypartition>
                    </modifypartitions>
                </disk>
            </diskconfiguration>
            <imageinstall>
                <osimage>
                    <installto>
                        <diskid>0</diskid>
                        <partitionid>4</partitionid>
                    </installto>
                    <installtoavailablepartition>false</installtoavailablepartition>
                </osimage>
            </imageinstall>
            <userdata>
                <productkey>
                    <key></key>
                    <willshowui>never</willshowui>
                </productkey>
                <accepteula>true</accepteula>
                <fullname>admin</fullname>
                <organization></organization>
            </userdata>
        </component>
    </settings>
    <settings pass="offlineservicing">
        <component name="microsoft-windows-lua-settings" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <enablelua>false</enablelua>
        </component>
    </settings>
    <settings pass="generalize">
        <component name="microsoft-windows-security-spp" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <skiprearm>1</skiprearm>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="microsoft-windows-international-core" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <inputlocale>0409:00000409</inputlocale>
            <systemlocale>en-us</systemlocale>
            <uilanguage>en-us</uilanguage>
            <uilanguagefallback>en-us</uilanguagefallback>
            <userlocale>en-us</userlocale>
        </component>
        <component name="microsoft-windows-security-spp-ux" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <skipautoactivation>true</skipautoactivation>
        </component>
        <component name="microsoft-windows-sqmapi" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <ceipenabled>0</ceipenabled>
        </component>
        <component name="microsoft-windows-shell-setup" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <computername>-pc</computername>
            <productkey></productkey>
        </component>
    </settings>
    <settings pass="oobesystem">
        <component name="microsoft-windows-shell-setup" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs"
            xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
            <autologon>
                <password>
                    <value></value>
                    <plaintext>true</plaintext>
                </password>
                <enabled>true</enabled>
                <username>admin</username>
            </autologon>
            <oobe>
                <hideeulapage>true</hideeulapage>
                <hideoemregistrationscreen>true</hideoemregistrationscreen>
                <hideonlineaccountscreens>true</hideonlineaccountscreens>
                <hidewirelesssetupinoobe>true</hidewirelesssetupinoobe>
                <networklocation>home</networklocation>
                <skipuseroobe>true</skipuseroobe>
                <skipmachineoobe>true</skipmachineoobe>
                <protectyourpc>1</protectyourpc>
            </oobe>
            <useraccounts>
                <localaccounts>
                    <localaccount wcm:action="add">
                        <password>
                            <value></value>
                            <plaintext>true</plaintext>
                        </password>
                        <description></description>
                        <displayname>admin</displayname>
                        <group>administrators</group>
                        <name>admin</name>
                    </localaccount>
                </localaccounts>
            </useraccounts>
            <registeredorganization></registeredorganization>
            <registeredowner>admin</registeredowner>
            <disableautodaylighttimeset>false</disableautodaylighttimeset>
            <firstlogoncommands>
                <synchronouscommand wcm:action="add">
                    <description>control panel view</description>
                    <order>1</order>
                    <commandline>reg add "hkey_current_user\software\microsoft\windows\currentversion\explorer\controlpanel" /v startuppage /t reg_dword /d 1 /f</commandline>
                    <requiresuserinput>true</requiresuserinput>
                </synchronouscommand>
                <synchronouscommand wcm:action="add">
                    <order>2</order>
                    <description>control panel icon size</description>
                    <requiresuserinput>false</requiresuserinput>
                    <commandline>reg add "hkey_current_user\software\microsoft\windows\currentversion\explorer\controlpanel" /v allitemsiconview /t reg_dword /d 0 /f</commandline>
                </synchronouscommand>
                <synchronouscommand wcm:action="add">
                    <order>3</order>
                    <requiresuserinput>false</requiresuserinput>
                    <commandline>cmd /c wmic useraccount where name="admin" set passwordexpires=false</commandline>
                    <description>password never expires</description>
                </synchronouscommand>
            </firstlogoncommands>
            <timezone>central standard time</timezone>
        </component>
    </settings>
</unattend>

我尝试使用 xml.namexml.attr 和字符串,但没有成功

const (
    // A generic XML header suitable for use with the output of Marshal.
    Header = `<?xml version="1.0" encoding="UTF-8"?>` + "\n"
    WCM    = `http://schemas.microsoft.com/WMIConfig/2002/State`
    XSI    = `http://www.w3.org/2001/XMLSchema-instance`
)

type UserData struct {
    AcceptEula   bool   `xml:"AcceptEula"`
    FullName     string `xml:"FullName"`
    Organization string `xml:"Organization"`
    ProductKey   struct {
        Key        string `xml:"Key"`
        WillShowUI string `xml:"WillShowUI"`
    } `xml:"ProductKey"`
}

type OSImage struct {
    XMLName                     xml.Name `xml:"OSImage"`
    InstallToAvailablePartition bool     `xml:"InstallToAvailablePartition"`
    InstallToDiskID             uint32   `xml:"InstallTo>DiskID"`
    InstallToPatitionID         uint32   `xml:"InstallTo>ParitionID"`
}

type ImageInstall struct {
    XMLName xml.Name `xml:"ImageInstall"`
    OSImage OSImage  `xml:"OSImage"`
}

type CreatePartition struct {
    XMLName xml.Name `xml:"CreatePartition"`
    Order   uint32   `xml:"Order"`
    Type    string   `xml:"Type"`
    Size    uint64   `xml:"Size,omitempty"`
    Extend  bool     `xml:"Extend,omitempty"`
    Action  xml.Attr `xml:"action,attr"`
}
type ModifyPartition struct {
    XMLName     xml.Name `xml:"ModifyPartition"`
    Order       uint32   `xml:"Order"`
    PartitionID uint32   `xml:"PartitionID"`
    Label       string   `xml:"Label,omitempty"`
    Format      string   `xml:"Format,omitempty"`
    TypeID      string   `xml:"TypeID,omitempty"`
    Letter      string   `xml:"Letter,omitempty"`
    Action      xml.Attr `xml:"action,attr"`
}
type Disk struct {
    XMLName          xml.Name           `xml:"Disk"`
    Action           xml.Attr           `xml:"action,attr"`
    DiskID           uint32             `xml:"DiskID"`
    WillWipeDisk     bool               `xml:"WillWipeDisk"`
    CreatePartitions []*CreatePartition `xml:"CreatePartitions>."`
    ModifyPartitions []*ModifyPartition `xml:"ModifyPartitions>."`
}

type DiskConfiguration struct {
    XMLName xml.Name `xml:"DiskConfiguration"`
    Disks   []*Disk  `xml:"Disk"`
}

type SetupUILanguage struct {
    XMLName    xml.Name    `xml:"SetupUILanguage"`
    UILanguage *UILanguage `xml:"UILanguage"`
}

type UserLocale struct {
    XMLName xml.Name `xml:"UserLocale"`
    Value   string   `xml:",chardata"`
}

type InputLocale struct {
    XMLName xml.Name `xml:"InputLocale"`
    Value   string   `xml:",chardata"`
}

type SystemLocale struct {
    XMLName xml.Name `xml:"SystemLocale"`
    Value   string   `xml:",chardata"`
}

type UILanguage struct {
    XMLName xml.Name `xml:"UILanguage"`
    Value   string   `xml:",chardata"`
}

type UILanguageFallback struct {
    XMLName xml.Name `xml:"UILanguageFallback"`
    Value   string   `xml:",chardata"`
}

type EnableLUA struct {
    XMLName xml.Name `xml:"EnableLUA"`
    Value   bool     `xml:",chardata"`
}

type SkipRearm struct {
    XMLName xml.Name `xml:"SkipRearm"`
    Value   int32    `xml:",chardata"`
}

type SkipAutoActivation struct {
    XMLName xml.Name `xml:"SkipAutoActivation"`
    Value   bool     `xml:",chardata"`
}
type CEIPEnabled struct {
    XMLName xml.Name `xml:"CEIPEnabled"`
    Value   int32    `xml:",chardata"`
}
type ComputerName struct {
    XMLName xml.Name `xml:"ComputerName"`
    Value   string   `xml:",chardata"`
}
type ProductKey struct {
    XMLName xml.Name `xml:"ProductKey"`
    Value   string   `xml:",chardata"`
}

type Password struct {
    XMLName   xml.Name `xml:"Password"`
    Value     string   `xml:"Value"`
    PlainText bool     `xml:"PlainText"`
}

type AutoLogon struct {
    XMLName  xml.Name `xml:"AutoLogon"`
    Enabled  bool     `xml:"Enabled"`
    Username string   `xml:"Username"`
    Password Password `xml:"Password"`
}

type OOBE struct {
    XMLName                   xml.Name `xml:"OOBE"`
    HideEULAPage              bool     `xml:"HideEULAPage,omitempty"`
    HideOEMRegistrationScreen bool     `xml:"HideOEMRegistrationScreen,omitempty"`
    HideOnlineAccountScreens  bool     `xml:"HideOnlineAccountScreens,omitempty"`
    HideWirelessSetupInOOBE   bool     `xml:"HideWirelessSetupInOOBE,omitempty"`
    NetworkLocation           string   `xml:"NetworkLocation,omitempty"`
    SkipUserOOBE              bool     `xml:"SkipUserOOBE,omitempty"`
    SkipMachineOOBE           bool     `xml:"SkipMachineOOBE,omitempty"`
    ProtectYourPC             int32    `xml:"ProtectYourPC,omitempty"`
}

type LocalAccount struct {
    XMLName     xml.Name `xml:"LocalAccount"`
    Action      xml.Attr `xml:"action,attr"`
    Password    Password `xml:"Password"`
    Description string   `xml:"Description"`
    DisplayName string   `xml:"DisplayName"`
    Group       string   `xml:"Group"`
    Name        string   `xml:"Name"`
}

type LocalAccounts struct {
    XMLName      xml.Name
    LocalAccount []*LocalAccount `xml:"LocalAccount"`
}

type UserAccounts struct {
    XMLName       xml.Name      `xml:"UserAccounts"`
    LocalAccounts LocalAccounts `xml:"LocalAccounts"`
}

type RegisteredOrganization struct {
    XMLName xml.Name `xml:"RegisteredOrganization"`
    Value   string   `xml:",chardata"`
}
type RegisteredOwner struct {
    XMLName xml.Name `xml:"RegisteredOwner"`
    Value   string   `xml:",chardata"`
}
type DisableAutoDaylightTimeSet struct {
    XMLName xml.Name `xml:"DisableAutoDaylightTimeSet"`
    Value   bool     `xml:",chardata"`
}

type CommandLine struct {
    XMLName xml.Name `xml:"CommandLine"`
    Value   string   `xml:",innerxml"`
}

type SynchronousCommand struct {
    XMLName           xml.Name    `xml:"SynchronousCommand"`
    Order             uint32      `xml:"Order"`
    Description       string      `xml:"Description"`
    RequiresUserInput bool        `xml:"RequiresUserInput"`
    CommandLine       CommandLine `xml:"CommandLine"`
}

type FirstLogonCommands struct {
    XMLName            xml.Name              `xml:"FirstLogonCommands"`
    SynchronousCommand []*SynchronousCommand `xml:"SynchronousCommand"`
}
type TimeZone struct {
    XMLName xml.Name `xml:"TimeZone"`
    Value   string   `xml:",chardata"`
}

type Component struct {
    XMLName               xml.Name `xml:"component"`
    Name                  string   `xml:"name,attr"`
    ProcessorArchitecture string   `xml:"processorArchitecture,attr"`
    PublicKeyToken        string   `xml:"publicKeyToken,attr"`
    Language              string   `xml:"language,attr"`
    VersionScope          string   `xml:"versionScope,attr"`
    // optional compontents
    SetupUILanguage            *SetupUILanguage            `xml:"SetupUILanguage"`
    UserLocale                 *UserLocale                 `xml:"UserLocale"`
    InputLocale                *InputLocale                `xml:"InputLocale"`
    SystemLocale               *SystemLocale               `xml:"SystemLocale"`
    UILanguage                 *UILanguage                 `xml:"UILanguage"`
    UILanguageFallback         *UILanguageFallback         `xml:"UILanguageFallback"`
    DiskConfiguration          *DiskConfiguration          `xml:"DiskConfiguration,omitempty"`
    ImageInstall               *ImageInstall               `xml:"ImageInstall,omitempty"`
    UserData                   *UserData                   `xml:"UserData,omitempty"`
    EnableLUA                  *EnableLUA                  `xml:"EnableLUA,omitempty"`
    SkipRearm                  *SkipRearm                  `xml:"SkipRearm,omitempty"`
    ProductKey                 *ProductKey                 `xml:"ProductKey,omitempty"`
    ComputerName               *ComputerName               `xml:"ComputerName,omitempty"`
    SkipAutoActivation         *SkipAutoActivation         `xml:"SkipAutoActivation,omitempty"`
    CEIPEnabled                *CEIPEnabled                `xml:"CEIPEnabled,omitempty"`
    AutoLogon                  *AutoLogon                  `xml:"AutoLogon,omitempty"`
    OOBE                       *OOBE                       `xml:"OOBE,omitempty"`
    UserAccounts               *UserAccounts               `xml:"UserAccounts"`
    RegisteredOrganization     *RegisteredOrganization     `xml:"RegisteredOrganization,omitempty"`
    RegisteredOwner            *RegisteredOwner            `xml:"RegisteredOwner,omitempty"`
    DisableAutoDaylightTimeSet *DisableAutoDaylightTimeSet `xml:"DisableAutoDaylightTimeSet,omitempty"`
    FirstLogonCommands         *FirstLogonCommands         `xml:"FirstLogonCommands,omitempty"`
    TimeZone                   *TimeZone                   `xml:"TimeZone,omitempty"`
}

type Settings struct {
    XMLName    xml.Name     `xml:"settings"`
    Pass       string       `xml:"pass,attr"`
    Components []*Component `xml:"component"`
}

type Unattend struct {
    XMLName  xml.Name    `xml:"unattend"`
    XMLNS    xml.Attr    `xml:"xmlns,attr"`
    Settings []*Settings `xml:"settings"`
}



正确答案


xmlns:wcmxmlns:xsi 并不是真正的属性,它们是经过特殊处理的。您的 xml 既没有 wcmxsi 架构中的元素也没有属性,因此它们将被删除。为什么你的代码中需要它们?

如果您确实需要它们,您可以将以下字段添加到 component 结构中:

attr                  []xml.attr `xml:",any,attr"`

xml.Unmarshal documentation says

如果 xml 元素具有先前规则未处理的属性,并且结构体具有包含“,any,attr”的关联标记的字段,则 unmarshal 会在第一个此类字段中记录该属性值。

这里是一个例子:https://go.dev/play/p/tGDh5Ay1kZW

func main() {
    var u unattend
    err := xml.unmarshal([]byte(document), &u)
    if err != nil {
        log.fatal(err)
    }
    for _, a := range u.settings[0].components[0].attr {
        fmt.printf("unmatched attributes: %s:%s = %s\n", a.name.space, a.name.local, a.value)
    }
}

输出:

unmatched attributes: xmlns:wcm = http://schemas.microsoft.com/wmiconfig/2002/state
unmatched attributes: xmlns:xsi = http://www.w3.org/2001/xmlschema-instance

注意 1。此解决方案的缺点是:它仅处理 中的额外属性。但 xmlns:xxx 属性可以出现在任何元素中。一般情况下,您应该在数据模型的所有结构中添加 attr 数组。

注2.属性xmlns:wcmxmlns:xsi不包含任何业务逻辑。他们没有提供有关设置和组件的信息。你真的需要它们吗?

注释 3. 绝对不需要将这些属性命名为 xmlns:wcmxmlns:xsi。这只是一种常见的做法。 xml 文档可以将它们命名为 xmlns:fooxmlns:bar - 这是完全有效的。即使值 "http://schemas.microsoft.com/wmiconfig/2002/state""http://www.w3.org/2001/xmlschema-instance" 也没有任何意义。它们可以是任何字符串,唯一的要求是匹配 URI formaturn:microsoft:wmi-config:2002:statehttp://schemas.microsoft.com/wmiconfig/2002/state 一样有效

解析 component 中的这些属性非常具体,对于在其他元素中或使用其他后缀或值声明这些属性的其他有效 xml 文档可能会失败。

更新

编组工作未按预期进行。 xml.marshal 专门处理 xmlns 命名空间,并将 attrxmlns:wcmxmlns:xsi 转换为命名空间 _xmlns

<component name="microsoft-windows-security-spp" processorarchitecture="amd64" publickeytoken="31bf3856ad364e35" language="neutral" versionscope="nonsxs" xmlns:_xmlns="xmlns" _xmlns:wcm="http://schemas.microsoft.com/wmiconfig/2002/state" _xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">
...
</component>

解决方法是对属性使用特殊类型:

type xmlnsattr struct {
    name  xml.name
    value string
}

func (a xmlnsattr) label() string {
    if a.name.space == "" {
        return a.name.local
    }
    if a.name.local == "" {
        return a.name.space
    }
    return a.name.space + ":" + a.name.local
}

func (a *xmlnsattr) unmarshalxmlattr(attr xml.attr) error {
    a.name = attr.name
    a.value = attr.value
    return nil
}

func (a xmlnsattr) marshalxmlattr(name xml.name) (xml.attr, error) {
    return xml.attr{
        name: xml.name{
            space: "",
            local: a.label(),
        },
        value: a.value,
    }, nil
}

此类型通过构造一个属性并将命名空间嵌入到本地名称中来实现这一点。领域

    attr                  []xml.attr `xml:",any,attr"`

正确解码/编码 xmlns:xxx 属性

示例:https://go.dev/play/p/VDofREl5nf1

输出:

Unmatched attributes: xmlns:wcm = http://schemas.microsoft.com/WMIConfig/2002/State
Unmatched attributes: xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance
<unattend>
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        ...
    </component>
    ...
  </settings>
</unattend>

以上就是《对包含命名空间 xmlns:wcm 和 xmlns:xsi 的 XML 进行正确编组和解组》的详细内容,更多关于的资料请关注golang学习网公众号!

版本声明
本文转载于:stackoverflow 如有侵犯,请联系study_golang@163.com删除
时间范围内数组元素的标准化方法时间范围内数组元素的标准化方法
上一篇
时间范围内数组元素的标准化方法
为什么在 Goland (IDEA) 中 Go 源代码显示为灰色?如何恢复正常显示?
下一篇
为什么在 Goland (IDEA) 中 Go 源代码显示为灰色?如何恢复正常显示?
查看更多
最新文章
查看更多
课程推荐
  • 前端进阶之JavaScript设计模式
    前端进阶之JavaScript设计模式
    设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。
    543次学习
  • GO语言核心编程课程
    GO语言核心编程课程
    本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。
    514次学习
  • 简单聊聊mysql8与网络通信
    简单聊聊mysql8与网络通信
    如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让
    499次学习
  • JavaScript正则表达式基础与实战
    JavaScript正则表达式基础与实战
    在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。
    487次学习
  • 从零制作响应式网站—Grid布局
    从零制作响应式网站—Grid布局
    本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。
    484次学习
查看更多
AI推荐
  • SEO  AI Mermaid 流程图:自然语言生成,文本驱动可视化创作
    AI Mermaid流程图
    SEO AI Mermaid 流程图工具:基于 Mermaid 语法,AI 辅助,自然语言生成流程图,提升可视化创作效率,适用于开发者、产品经理、教育工作者。
    740次使用
  • 搜获客笔记生成器:小红书医美爆款内容AI创作神器
    搜获客【笔记生成器】
    搜获客笔记生成器,国内首个聚焦小红书医美垂类的AI文案工具。1500万爆款文案库,行业专属算法,助您高效创作合规、引流的医美笔记,提升运营效率,引爆小红书流量!
    754次使用
  • iTerms:一站式法律AI工作台,智能合同审查起草与法律问答专家
    iTerms
    iTerms是一款专业的一站式法律AI工作台,提供AI合同审查、AI合同起草及AI法律问答服务。通过智能问答、深度思考与联网检索,助您高效检索法律法规与司法判例,告别传统模板,实现合同一键起草与在线编辑,大幅提升法律事务处理效率。
    773次使用
  • TokenPony:AI大模型API聚合平台,一站式接入,高效稳定高性价比
    TokenPony
    TokenPony是讯盟科技旗下的AI大模型聚合API平台。通过统一接口接入DeepSeek、Kimi、Qwen等主流模型,支持1024K超长上下文,实现零配置、免部署、极速响应与高性价比的AI应用开发,助力专业用户轻松构建智能服务。
    838次使用
  • 迅捷AIPPT:AI智能PPT生成器,高效制作专业演示文稿
    迅捷AIPPT
    迅捷AIPPT是一款高效AI智能PPT生成软件,一键智能生成精美演示文稿。内置海量专业模板、多样风格,支持自定义大纲,助您轻松制作高质量PPT,大幅节省时间。
    727次使用
微信登录更方便
  • 密码登录
  • 注册账号
登录即同意 用户协议隐私政策
返回登录
  • 重置密码