ext1.x to ext2.0升级指南1(转自官方)

官方网站速度太慢了 转到自己这里

Ext 1 to 2 Migration Guide

From Learn About the Ext JavaScript Library

Jump to: navigation, search

Document Status

This document is currently in progress (DRAFT status). However, it has enough content that I wanted to

make it available for initial review. Please do not edit or translate yet — add all comments, questions,

etc. to the discussion page. I plan on finalizing and "officially" publishing it for the 2.0 final release,

but it is open now for public comment and technical review. —Brian

Introduction

Welcome to Ext 2.0. If you are new to Ext (or just new to 2.0), you'll probably want to begin with the Ext 2.0 Overview is

it introduces some of the new concepts in version 2.0. This document is intended for existing Ext 1.x users who need to

migrate existing code from 1.x to 2.0. Unfortunately, because of the architectural changes in the new version of Ext, i

t was not possible to maintain full backwards compatibility. While the Overview will help get you oriented with the new

code base, this guide will provide the practical steps needed to migrate your code as painlessly as possible.

Once your application is compiling again under 2.0, you'll probably want to dive into the details and start utilizing some

of the new advances in the framework that could help take your applications to the next level. For additional information

on 2.0, here are some helpful resources:

Contents

[hide]
<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>

Summary of Breaking Changes

Here's a high-level summary of all the areas in 2.0 that are not backwards-compatible with 1.x and will require manual modifications to existing code to migrate it to 2.0. Please note that there have been countless minor improvements, bug fixes and other backwards-compatible changes across the framework from 1.x to 2.0. It would be impossible to list everything, so this migration guide is focused only on the areas in the framework that will not work correctly "out of the box" after an upgrade to the 2.0 library. Each item is explained in complete detail in the sections following this summary.

  • Component Model Changes
    In 2.0, the Component model has been greatly improved and now forms the base of all major components. Part of this model is a unified constructor and rendering model, and many 1.x classes that have moved to this new model had their constructor signatures changed, and so must be upgraded to 2.0-style constructor/rendering. Details
  • Layout Model Changes
    The 1.x BorderLayout model has been replaced by a much more flexible layout architecture in 2.0. BorderLayout is now only one of many layout styles, and the object model related to layouts has changed significantly. Details
  • Grid Changes
    Both the Grid and GridView classes have changed in 2.0. Many new features have been added, but some (like column locking) have been removed. Details
  • TabPanel Changes
    TabPanel now extends Panel instead fo Observable, and has a few other relatively minor API changes. Details
  • Form Changes
    The Form class now extends Panel, meaning that as a Container clas, it has standard methods for adding items and performing layouts in 2.0. Several form-specific layout methods have been removed in favor of standard 2.0 methods. Details
  • BasicDialog Removed
    BasicDialog has been replaced with a much more flexible Window class that can contain any types of items or layouts. Details
  • LayoutDialog Removed
    LayoutDialog was simply a means for adding a BorderLayout to a BasicDialog in 1.x. Now that Window can have any layout (including BorderLayout) a separate class is not needed. Details
  • QuickTip Changes
    The single QuickTips singleton has been replaced by four separate classes now for much added power and flexibility. Details
  • Template Changes
    The regular Template class still exists for basic template processing, but MasterTemplate (for child template processing) has been replaced by the more powerful XTemplate, which adds a slew of new template features. Details
  • View Replaced
    The View class has been replaced by the more powerful DataView, which now extends BoxComponent and uses
  • an XTemplate internally for template processing. Details
  • Other API changes
    There were a small number of relatively minor API changes that only affected specific members (as opposed to entire classes).
  • Most of these are simple text-replacement fixes to upgrade to 2.0.Details

Upgrading to the 2.0 Component Model

Many classes that did not extend Component in 1.x now do in 2.0. Any 1.x classes that used to pass a container

reference (or any other arguments) and a config into the constructor now render under the Component model,

which means the constructor only takes a config. Because of this, any existing code that creates instances of

classes that now extend Component will most likely need to be changed as follows:

  1. Remove all non-config arguments so that the config object is the only constructor argument.
  2. Quite often a container or 'el' argument was required in 1.x. You can now specify the container in 2.0
  3. either by using the renderTo or applyTo configs, or by rendering the component directly to its container
  4. in code like so: myComponent.render('containerId');.
  5. If any other arguments were present in 1.x, there will be an alternate config-based method for passing
  6. them in. See the specific class documentation for details if needed.

Converting BorderLayout to 2.0

Layout Architecture

In 1.x the layout classes were entirely focused around the BorderLayout model. BorderLayout extended the base LayoutManager

, but every other class either extended or was aggregated by BorderLayout. The basic model in 1.x was that a BorderLayout could

contain regions, and regions could contain content panels.

Ext 1.x (left) to 2.0 (right) Layout Hierarchy Comparison
Ext 1.x (left) to 2.0 (right) Layout Hierarchy Comparison

In 2.0, there are several major differences, and understanding them will definitely aid in transitioning existing code from 1.x.

  • The entire model is now based on Component/Container.
    In 1.x, the BorderLayout class itself acted as the primary container, supplying the methods for adding and removing regions and panels. However, its containment capabilities were limited to those specific classes. In 2.0, there is an entire Component/Container architecture that is now consistent across all Components. Layouts are now built by creating and nesting containers like Panels and assigning each one a layout style.
  • Class responsibilities have been inverted.
    In 1.x, the LayoutManager/BorderLayout controlled layout logic and resize monitoring. BorderLayout contained regions, and regions contained content. In 2.0, this structure has been flipped around. The Container class (which displays content) is now the root of the structure, and it contains layouts. Regions are still available, but are specific to BorderLayout instead of being an integral part of the overall layout hierarchy.
  • Layout logic has been delegated to the layout managers.
    The actual layout rendering logic has now been delegated to the layout-specific classes so that a given Container knows nothing about layout at all, and simply delegates all layout duties. This makes the entire hierarchy much more flexible as any Container can now employ any given layout strategy, and Containers can be arbitrarily nested, each containing its own layout. This is a powerful leap forward from the capabilities of 1.x layouts.
  • There are now many additional layout managers.
    1.x was based on BorderLayout and did not provide any other options (aside from the ReaderLayout convenience class). 2.0 still includes BorderLayout, but also provides nine additional layout managers for ultimate flexibility. These are discussed in more detail in the 2.0 Overview Guide.
Layout Class Mappings

This section will outline how the layout classes generally map between 1.x and 2.0. Note that the mapping is not perfect

as the entire structure was completely rewritten, but it should still give a good sense for where to look in 2.0 for comparable functionality from 1.x.

1.x2.0Notes
Ext.LayoutManager—LayoutManager didn't actually do much by itself. As a base class, it mostly provided template and proxy functionality that was intended to be useful to its subclasses, such as begin/endUpdate to allow the developer to tell the layout when to render, proxying region event firing at the layout level, view size monitoring and an empty layout template method. The closest match in 2.0 would probably be ContainerLayout, although there isn't much practical similarity in the code.
Ext.BorderLayoutExt.layout.BorderLayout,
Ext.Container
In 2.0, the layout classes only provide layout logic, and that's it. Also, they are not generally created directly — instead, they are called and managed internally by the Container classes. So in terms of layout logic, Ext.BorderLayout.layout maps pretty closely to Ext.layout.BorderLayout.onLayout, but in 1.x it was called directly by the developer, while in 2.0 it is called internally by Containers automatically. The functionality of adding panels has been moved to the Container classed in 2.0, and the functionality to add regions is still in BorderLayout, but it no longer contains methods to do so. Instead, now adding regions is done entirely through configuration.
Ext.ReaderLayout—This was simply a convenience class that created a specific BorderLayout configuration to render a classic, 5-pane application. It consisted of a header, a primary center region containing two nested regions (a top one for a list view and one for item preview below), and regions on either side for additional content. There is no corresponding class in 2.0, although the example below of converting a BorderLayout to 2.0 is extremely close to the default ReaderLayout and should provide a perfect template for duplicating that layout style in 2.0 if needed.
Ext.BasicLayoutRegion,
Ext.LayoutRegion
Ext.layout.BorderLayout.RegionAlthough not all of the functionality is the same, the two 1.x region classes combined map exactly to the Region class in 2.0. One thing to note is that in 1.x, the regions had a convenient shortcut built-in that adding multiple panels automatically converted each panel into a tab and the region itself became a tab container. In 2.0, Containers can now commonly contain multiple non-tab panels depending on the layout style, so in order to create a set of tabs in 2.0, the TabPanel widget must be used directly (and can of course be added to a BorderLayout region).
Ext.SplitLayoutRegionExt.layout.BorderLayout.SplitRegionAlthough not all of the functionality is the same, this is a one-to-one class mapping.
Ext.ContentPanel,
Ext.NestedContentPanel
Ext.PanelThe Panel class in 2.0 is basically the same as the 1.x ContentPanel although many times more powerful. The NestedContentPanel was specifically available to allow nesting of additional BorderLayouts within an existing ContentPanel. In 2.0, this behavior is already built into the Container/Panel classes to allow arbitrary nesting with any layout, so no extra class is needed.
Ext.GridPanelExt.GridPanelThese classes map exactly, although in 1.x GridPanel was just a wrapper for the grid, while in 2.0 the GridPanel actually is the grid.
—AbsoluteLayout,
AccordianLayout,
AnchorLayout,
CardLayout,
ColumnLayout,
ContainerLayout,
FitLayout,
FormLayout,
TableLayout
These are all of the new layout managers provided in 2.0. There was nothing comparable in 1.x.
Converting BorderLayout

Now that you should have a good overall understanding of how the layout architecture has changed, an example will provide

the best practical demonstration of transitioning a 1.x BorderLayout to 2.0. In the Ext "\examples\layout\" folder that comes with

the download, there is a file called complex.html. This file existed in 1.x, and has been upgraded to work under 2.0.

Comparing both versions of that file demonstrates how to

upgrade a layout to 2.0, so let's break it down piece by piece.

A typical 1.x BorderLayout
A typical 1.x BorderLayout
BorderLayout vs. Viewport

In 1.x, the BorderLayout was created directly and rendered to document.body. In 2.0, while you can technically

create a Panel rendered and sized to document.body, the Viewport class was built to provide that exact functionality.

Anytime you are rendering a full-screen UI, the Viewport should be the foundation. The Viewport, just like all Container

classes, can support any valid layout style. In this case, we will specify layout:'border'.

1.x2.0
layout = new Ext.BorderLayout(document.body, {
var viewport = new Ext.Viewport({
layout:'border',
Using the Items Array

In 1.x, each object had to be created explicitly and added to its parent explicitly. In 2.0, every Container class has an

items config that can be populated with an array of any Components or other Containers. In this example, every single

object making up the UI has been added in the Viewport's items array.

1.x2.0
layout.add('north', new Ext.ContentPanel('north', 'North'));
layout.add('south', new Ext.ContentPanel('south', {title: 'South',
closable: true}));
layout.add('west', new Ext.ContentPanel('west', {title: 'West'}));
layout.add('east', new Ext.ContentPanel(Ext.id(), {autoCreate:true,
title: 'Dynamic Tab', closable: true}));
layout.add('east', new Ext.ContentPanel('autoTabs',
{
title: 'Auto Tabs', closable: true}));
layout.add('center', new Ext.ContentPanel('center1',
{title: 'Close Me', closable: true}));
layout.add('center', new Ext.ContentPanel('center2',
{title: 'Center Panel', closable: false}));
items:[
new Ext.BoxComponent({ // raw
region:'north',
// other configs
}),{
region:'south',
contentEl: 'south',
// other configs
}, {
region:'east',
// other configs
} //etc.
Adding Regions and Panels

As shown above, Regions and ContentPanels were created explicitly as objects in 1.x. While you can still create your

own Regions and Panels in 2.0, the preferred syntax for building a UI is the config syntax shown in the example code.

Each object being passed into the items array is a config object representing a Panel (except the first one, which

shows an example of adding a raw BoxComponent when

a full Panel is not required).

The 1.x BorderLayout converted to 2.0
The 1.x BorderLayout converted to 2.0
Creating Tabs

In the 1.x example, tabs are created simply by adding multiple content panels to the same region (as in the

east and center regions). In the 2.0 code, note that TabPanels are explicitly created and added into the items

arrays of the appropriate containers. Note that when specific components are added directly to a layout (as in

the case of the center TabPanel) the region config must be specified on that component.

1.x2.0
layout.add('center', new Ext.ContentPanel('center1',
 {title: 'Close Me', closable: true}));
layout.add('center', new Ext.ContentPanel('center2',
 {title: 'Center Panel', closable: false}));
new Ext.TabPanel({
region:'center',
deferredRender:false,
activeTab:0,
items:[{
contentEl:'center1',
title: 'Close Me',
closable:true,
autoScroll:true
},{
contentEl:'center2',
title: 'Center Panel',
autoScroll:true
}]
Rendering the Layout

Once everything is constructed, it gets rendered. In 1.x, the developer was responsible for telling the layout

when to defer rendering and when to update the UI using beginUpdate/endUpdate. In 2.0, this is no longer

required. You simply build up the UI and updates are automatically deferred. Then once the top-most container

is rendered, all contained components get rendered automatically by the framework. For regular Panels, this

would require a call at the end like panel.render(document.body). However, since Viewports are automatically

rendered for you, this is not needed in this example.

Upgrading Grids for 2.0

Introduction

The underlying models for getting data into a grid (proxies, readers, stores, column model, selection model) have

not changed significantly in 2.0, which is good news for upgrading grids. The biggest change is that Grid extended

Observable, but in 2.0, it now extends Panel (hence, the name change to GridPanel). While there are some breaking

changes as detailed below, most are relatively minor. However, there are a huge number of new members in GridPanel,

so be sure to have a look through the API docs to see how much more powerful the grid is in 2.0.

Grid to GridPanel
Grid (1.x)GridPanel (2.0)Notes
Config Options
enableColLock—Column locking has been removed in 2.0 Additional details
enableCtxMenuenableHdMenuIn 1.x, the header menu was only accessible via context (right-click) menu. In 2.0, the menu dropdown arrows are rendered into the header directly and automatically displayed on mouseover. Because of this the 1.x name for this event was updated to reflect the new meaning.
autoSizeColumnsautoFill (GridView)This option was renamed and moved to GridView (pass in the GridPanel's viewConfig option).
autoSizeHeaders—This is no longer needed in 2.0 as the header widths are automatically synced.
enableRowHeightSync—Related to column locking which is no longer supported in 2.0. Additional details
Methods
Grid(container, config)GridPanel(config)Renamed to reflect the new inheritance hierarchy. For additional information on upgrading the constructor, see the Component constructor upgrade guidelines.
autoSizedoLayoutThe method of redrawing the grid now comes from the base Container class in 2.0.
getDataSourcegetStoreMethod renamed for consistency.
getGridElgetElThis method now comes from the base Component class.
render()render([container], [position])This method is backwards-compatible, but is still worth mentioning for its new optional arguments. It is now inherited from the base Component class for consistent rendering support along with other components.
Events
dragdrop,
dragenter,
dragout,
dragover,
enddrag,
startdrag
—These never actually fired in 1.x and have been removed.
GridView API Changes
1.x2.0Notes
Methods
autoSizeColumn—Autosizing (or force-fitting in 2.0) is no longer supported on a per column basis.
autoSizeColumnsforceFit [config]A method call is no longer needed. Just pass forceFit in the grid's viewConfig and it will automatically maintain its fit after each column resize.
ensureVisiblefocusCell/focusRowThis method was made private as focusCell or focusRow should be called instead. Focusing a cell or row will automatically scroll it into view if needed.
fitColumnsforceFit [config]A method call is no longer needed. Just pass forceFit in the grid's viewConfig and it will automatically maintain its fit after each column resize.
getFooterPanelbbar (GridPanel)The GridView no longer maintains its own separate footer for toolbars and other components. The containing GridPanel already contains a bottom bar (bbar) for this purpose.
getHeaderPaneltbar (GridPanel)The GridView no longer maintains its own separate header for toolbars and other components. The containing GridPanel already contains a top bar (tbar) for this purpose.
Details Regarding Column Locking

The column locking feature in the 1.x grid (locking one or more columns in place so that columns to the right could

scroll horizontally leaving the locked columns in place) has been removed permanently. The header menu option

for locking/unlocking has been removed, and no configs or methods related to locking are available in 2.0.

Column locking was a great feature for a small subset of Ext users. However, because of the underlying layout and

rendering requirements necessary to enable locking, grid performance was significantly affected for everyone.

Unfortunately, column locking is fundamentally incompatible with high performance in a web environment, and

performance has always been a high priority for Ext. Because of that, we made the decision to remove it with the

result that the grid in 2.0 renders much faster and can handle many more rows of data than it did in 1.x.

Upgrading TabPanels for 2.0

The API for TabPanel has received a major upgrade in 2.0 as it now extends Panel instead of Observable. It also conta

ins standard Panel objects as tabs rather than the special TabPanelItem class that existed in 1.x. While there are some

breaking changes as detailed below, most are relatively minor. However, there are a huge number of new members in

TabPanel, so be sure to have a look through the API docs to see how much more powerful the tabs are in 2.0.

TabPanel Example

Here is a simple example of upgrading a basic TabPanel from 1.x to 2.0. Using the API reference below you should be

able to handle any additional member conversions that may be needed. Note that while the JS code is a little bit shorter

in 1.x, the overall complexity is actually reduced in 2.0 thanks to the greater config flexibility. No more need for custom

CSS for basic styling tasks.

1.x2.0
// CSS:
body {margin:30px;}
#my-tabs {width:300px;}
#my-tabs .x-tabs-body {height:80px;overflow:auto;}
#my-tabs .x-tabs-item-body {display:none;padding:15px;}

// JS:
var tabs = new Ext.TabPanel('my-tabs');
tabs.addTab('tab1', 'Tab 1', 'A simple tab example!');
tabs.addTab('tab2', 'Tab 2', 'More content');
tabs.addTab('tab3', 'Another One', 'More content', true);
tabs.activate('tab1');

// HTML:
"my-tabs">
var tabs = new Ext.TabPanel({
renderTo: Ext.getBody(),
activeTab: 0,
width: 300,
height: 100,
//plain: true, //remove tab strip background
defaults: {
autoHeight: true,
autoScroll: true,
bodyStyle: 'padding:15px'
},
items: [{
title: 'Tab 1',
html: 'A simple tab example!'
},{
title: 'Tab 2',
html: 'More content'
},{
title: 'Another one',
html: 'More content',
closable: true
}]
});
TabPanel API Changes
1.x2.0Notes
Config Options
currentTabWidth,
maxTabWidth,
preferredTabWidth
—In 1.x, all of these tab width configs only applied if the resizeTabs config was true. In that case, Ext managed tab widths within the rules applied by these additional configs. In 2.0 the reizeTabs config is still available, but tab widths are completely managed and these additional options are no longer honored. Only minWidth still applies in this case.
Methods
TabPanel(container, config)TabPanel(config)TabPanel now extends Panel instead of Observable. For additional information on upgrading the constructor, see the Component constructor upgrade guidelines.
addTab,
addTabItem
add (Container)Both addTab (for creating new TabPanelItems) and addTabItem (for adding existing ones) are replaced by the inherited Container add method that expects a Panel. For an approximation of addTab, you can pass in a new Panel config and it will be created dynamically on render.
autoSizeTabs—This is now an internal method and should not be called directly as tab widths are automatically managed by Ext.
disableTab,
enableTab
—In 1.x, these methods delegated to a contained TabPanelItem's disable/enable methods. In 2.0, there are no methods on the TabPanel to directly disable/enable a tab. Instead you would simply get a tab (Panel) reference and act on it directly. For example: tabPanel.getItem('my-tab').enable();
getActiveTab : TabPanelItemgetActiveTab : PanelThis method is the same, but it is worth noting that the object returned is now different, so the actions performed on the returned object may have to be updated as well.
getCountitems.lengthIn 2.0, the Container items collections is exposed directly as a property that can be used to access the contained items in many ways.
getTab : TabPanelItemgetItem : PanelThis getter is now an inherited Component method that returns a Panel object instead of a TabPanelItem.
hideTab,
unhideTab
hideTabStripItem,
unhideTabStripItem
removeTabremove (Container)This is now an inherited Container method.
setTabWidth—You can set the tab width initially using the tabWidth config, but the setTabWidth method is no longer available.
syncHeight([height])—Tab dimensions are now managed by the container automatically.
Properties
bodyElbodySince TabPanel is now a subclass of Panel, the standard Panel body replaces bodyEl.
elgetEl()In 2.0, el is private and the inherited Component getEl method should be used instead.
TabPanelItem to Panel

Note that while the TabPanelItem events are all supported by Panel, event handlers will now be called with a Panel object instead of a

TabPanelItem, so any handling logic might have to change accordingly.

TabPanelItem (1.x)Panel (2.0)Notes
Properties
TabPanelItem(tabPanel, id, text, closable)see notesTabPanelItems in 1.x only existed for the purpose of residing in a TabPanel, thus they had a very specific constructor argument list. There is no direct replacement as Panels are generic and the constructor is config-based. However, the following code would be equivalent when adding a new Panel to a TabPanel (note that a separate container config is not needed in this example since the Panel is being directly added):

tabPanel.add(new Ext.Panel({
id: 'my-tab',
title: 'My Tab',
closable: true
}));
bodyElbody
closeText—The tab's close button no longer supports configurable tooltip text in 2.0.
idgetId()The id property is now private in 2.0 and the inherited Component getId method should be used instead.
tabPanelownerCtEvery Component in 2.0 supports the ownerCt property which returns a reference to the owning Container.
Methods
activateshow (Component)When a Panel is added into a TabPanel as a tab, its normal show method will activate it within the TabPanel.
getTexttitle [property]The standard Panel title is used as the tab text when the Panel is added to a TabPanel.
getUpdateManagergetUpdaterThis returns the update manager for the Panel's body element.
isActive—Panels have no knowledge of whether or not they are active. Instead you could check tabPanel.getActiveTab().getId() == 'my-panel'.
isHiddenhidden [property]The standard Component hidden property can be used so no method is necessary.
refresh,
setUrl
load,
getUpdater().refresh
In 1.x, refresh used the properties set in setUrl to reload remote content into the tab. In 2.0, Panels can be loaded directly using the load method, or you can access the update manager directly via getUpdater and either load the Panel or refresh it using previously loaded configuration data.
setContentbody.updateEquiv
Http报错代码合集 立即下载

相关推荐

HFSS仿真3dB微带双分支定向耦合器学习笔记

设计一个3dB微带双分支定向耦合器,各端口微带线特性阻抗为50Ω,中心频率为5GHz,介质基板的介电常数9.6,基板厚度为0.8mm这里重点讲解HFSS的操作,关于理论知识后面文章更新。

qq_36521926的博客 7788

ext 例子

 我们开始第一个例子,可以帮助你了解Ext的开发。   (1)首先我们建立项目目录,如C:/example1。   (2)在example1目录下建立js和css两个目录,用于存放JS文件和CSS样式文件。   (3)为了节省空间我们只把需要的文件拷贝到项目中:将EXT目录中resources/css/目录下的ext-all.css、xtheme-aero.css、xtheme-gray.css、

Mango_007的专栏 720

【从零开始学Skynet】实战篇《球球大作战》(一):功能设计

为了能把之前在基础篇中学习到的Skynet的各种知识结合起来,所以在实战篇中,我们准备开发一个完整的游戏案例《球球大作战》,介绍分布式游戏服务端的实现方法。

我是一条寻水的鱼 2993

python3 批量更新包,解决Specify --upgrade to force replacement

python3批量更新已安装的包

一撇一画的博客 4268

嵌入式系统存储体系

主要分为三种:高速缓存(cache)、主存和外存。

weixin_43586667的博客 2272

YOLOv8 超参数调优教程! 使用Ray Tune进行高效的超参数调优!

YOLOv8超参数调优教程!😎 使用Ray Tune进行高效的超参数调优!

Coding... 1万+

报错合集

报错解决 [1]pip install … Requirement already satisfied: pytz in e:\anacond\anacond3\lib\site-packages (from Django==2.2) (2020.1) pip install –target=目标路径 <工具包名字> [2] WARNING: Target directory <Director> Specify --upgrade to force replacement.

lu_man_man7的博客 2473

STM32_HAL库—PWM产生指定个数

(一)CubeMX设置: 1. 晶振配置(72M) 2. 引脚配置 3. 中断配置 4. 配置及实现方式 由上推出公式: 机器周期: (72MHz / 36) = 2MHz = 0.5us PWM周期: 0.5 * 100 = 50us = 20kHz 5. 主函数调用PWM函数 HAL_TIM_PWM_Start_IT(&htim3, TIM_CHANNEL_2); //此处一句后可直接进入中断 6. PWM溢出回调函数 void HAL_TIM_PWM_PulseFinished

5529

WARNING: Target directory e:\py3.6.8\lib\site-packages\et_xmlfile already exists. Specify --upgrade

因为在Pycharm 里面的Terminal使用pip install 命令,他就给你装在默认环境里面。这里我的是用anaconda的虚拟环境。

sqm472527736的博客 2485

Xilinx DDR3 MIG IP核设计--汇总导航

快速上手Xilinx DDR3 IP核----汇总篇

孤独的单刀 2万+

2025高教社数学建模国赛A题 - 烟幕干扰弹的投放策略(完整参考论文)

摘要:本研究基于模拟遗传退火算法优化无人机投放烟幕弹策略,建立三维运动学模型分析遮蔽效果。针对不同战术场景(单机单弹至多机多弹),构建以遮蔽时间最大化为目标的非线性优化模型。通过改进遗传算法求解最优参数组合,结果显示在给定条件下单枚烟幕弹对M1导弹的有效遮蔽时长可达1.4秒。研究为无人机协同干扰提供了高效解决方案,验证了智能算法在复杂战术决策中的适用性。关键词:烟幕干扰;无人机投弹;运动学建模;时序优化;遗传算法。

ProminentWu的博客 549

WARNING: Target directory Specify --upgrade to force replacement.解决

详细描述:发现anaconda无论什么环境,下载需要的包都被装到一个指定的非anaconda虚拟环境目录之下,并且显示安装成功,但是此时相应的anaconda虚拟环境的site-packages里面并没有,通过命令行导入包也不行。解决方法:找到C:\Users\Username\AppData\Roaming\pip\pip.ini删除global选项中的target并保存,之后安装一切正常。

Fri_762的博客 2082

BMS硬件设计核心:安全、精度与EMC的工程平衡

电池管理系统(BMS)是保障锂电安全运行的关键嵌入式子系统,其本质是在高精度模拟测量、实时故障响应与复杂电磁环境适应性之间达成工程平衡。原理上,BMS依赖专用监测芯片(如BQ76920)实现微秒级硬件保护,结合主控MCU(如STM32)完成策略决策与通信管理,形成‘安全协处理器+智能主控’双架构。技术价值体现在对过压/欠压/过流/温度等多维故障的毫秒级闭环处置能力,支撑SOC/SOH估算可信度与系统鲁棒性。典型应用场景涵盖电动工具、轻型电动车及储能模块等中低串数电池组。本文聚焦BMS控制板在时钟布局、电源滤

weixin_30591519的博客 73

ext1.x to ext2.0升级指南2(转自官方)

TabPanelItem to Panel Note that while the TabPanelItem events are all supported by Panel, event handlers will now be called with a Panel object instead of a TabPanelItem, so any handling logic might h...

beckrabbit的专栏 258

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

ext3 升级到 ext4

刚开始 不懂,随便找个博客将 数据盘 格式化为 ext3 , 考虑到潜在的问题,考虑 升级到 ext 4. ​ // ext3 升级到 ext4 [root@hdp02 ~]# tune2fs -O extents,uninit_bg,dir_index /dev/xvdb1 tune2fs 1.42.9 (28-Dec-2013) // 磁盘扫描 [root@hdp02 ~]# fsck -pf /dev/xvdb1 fsck from util-linux 2.23.2 /dev/xvdb1:..

康师傅没有眼泪 654

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

【翻译】Ext JS升级顾问1.0发布

很高兴,Ext JS 升级顾问(Ext JS Upgrade Adviser )1.0终于发布了。升级顾问可以通过扫描Ext JS 4.x和5.x的应用程序后,指出这些源代码升级到Ext JS 6.x需要调整的地方。升级顾问主要包括以下功能: Ext JS...

黄灯桥的专栏 917

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

CodeIgniter 2.0.2 升级至 2.0.3 完整操作指南:文件替换、EXT 常量弃用与 Session 表结构调整

本指南基于 CodeIgniter 官方升级文档([upgrade_203.rst](https://link.gitcode.com/i/ace7d72f6aeeb3c1bdc09bad8d30b7c9)),系统梳理从 2.0.2 升级到 2.0.3 的全部步骤,涵盖站点下线、核心文件替换、配置迁移、EXT 常量清理、第三方包自动加载调整以及 Session 数据库表结构变更,并结合作品仓库中的

gitblog_01140的博客 332

the changes between with Ext1.0 and Ext 2.0

Ext 1 to 2 Migration GuideFrom Learn About the Ext JavaScript LibraryJump to: navigation, search IntroductionWelcome to Ext 2.0. If you are new to Ext (or just new to 2.0), youll proba

浮白 1810

ext2.0 的XMLWriter

做ext相关的一个example项目,把我们的客户端移植成ext2.0的,由于服务器接收的不是JSON数据而是dom,所以我们需要把我们的ajax请求格式对应成服务器支持的格式 查了下ext2.0的API,发现只有XMLReader,所以和同事手写XMLWriter /** * @author B.Chen */ function store2xml(store, xml){ s

420

Ext 2 Overview (EXT2.0概述,来自官方)

 有关重大改变的几个要点文章内容是对2.0新变化的综合简述。请留意Ext框架在从1.x跨越到2.0的过程中,经历了无数的细微改进、臭虫修正和其他的改动。 要逐一列出尚难为之,所以本文着重提及架构上有转换的地方,和一些全新加入的功能。本文下列的各部分将完整地解释这每一项的细节。组件模型 Component Model在1.x中就有Component和BoxCompon

kinglino520的专栏 748

ext2文件系统源代码之ext2.h

今天,我们看一下ext2文件系统源代码里面的ext2.h文件,这是一个头文件,里边都是一些函数的声明和一些结构体的定义,很多引用ext2的函数的地方都需要包含这个头文件,所以这个头文件用处是很广泛的,但是这个文件很简单,并且还很短,这就让我们理解变得很轻松了。 #include #include /*ext2挂载选项结构体*/ struct ext2_mount_options { /

love coding 3206

EXT2.0的新特性

有关重大改变的几个要点文章内容是对2.0新变化的综合简述。请留意Ext框架在从1.x跨越到2.0的过程中,经历了无数的细微改进、臭虫修正和其他的改动。 要逐一列出尚难为之,所以本文着重提及架构上有转换的主要地方,和一些全新加入的功能。本文下列的各部分将完整解释这每一项的细节。 组件模型 Component Model在1.x中就有Component和BoxComponent两个类了,但

吃螃蟹的虾子 1309

discord.py v2.0 迁移指南:从 v1.x 升级的全部破坏性变更与实战改造方案

本文档完整解读 discord.py v2.0 相对 v1.0 的全部破坏性变更(Breaking Changes),覆盖 Python 版本要求、asyncio 事件循环模型、Intents 强制化、Webhook 重写、Asset 体系重构、线程(Thread)支持、异步化命令扩展等 20 余个主题。读完本文,你将能够系统性地盘点 v1.x 代码中每一处需要改动的调用点,并按照文中提供的"前后

gitblog_00733的博客 908

ext2.0升级ext3.1笔记

最近在把项目的ext升级到ext3.1,有些问题记录下: 问题1: ext3.x版本不支持直接使用Ext.lib.Ajax.getConnectionObject()方法. 哎 ,我们项目太多直接调用这个同步ajax请求方法的地方了,所以后来没办法只能重写Ext.lib.Ajax多加了这个方法 问题2: ext3.x版本的Ext.grid.GridPanel里面缺少了getSelecti...

swbssd 340

Ext2文件系统—路径名查找—3--ext2_lookup(ext2_find_entry、ext2_iget、d_splice_alias)详述

前言             ext2_lookup是real_lookup中从VFS转入具体文件系统(此处是Ext2文件系统)处理的函数。从real_lookup传递给ext2_lookup的参数是父目录的inode结构 和 通过d_alloc函数分配的当前路径分量的dentry空壳(说是空壳,也不尽然,它里面填充有一些已知道的信息,其中就包括重要的:当前路径分量名)。ext2_lookup返

DenzilXu的专栏 5405
上一篇: Hql语句注意事项总结(转载)
下一篇: ext1.x to ext2.0升级指南2(转自官方)
beckrabbit
博客等级 码龄20年 0粉丝 5原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值